Class: RadioPreview

Inherits:
Lookbook::Preview
  • Object
show all
Defined in:
lib/lookbook/radio_preview.rb

Instance Method Summary collapse

Instance Method Details

#default(label: 'Radio', disabled: false, required: false) ⇒ Object

Parameters:

  • label (defaults to: 'Radio')

    text

  • disabled (defaults to: false)

    toggle

  • required (defaults to: false)

    toggle



6
7
8
# File 'lib/lookbook/radio_preview.rb', line 6

def default(label: 'Radio', disabled: false, required: false)
  render 'common/form', helper_name: 'material_radio', label: label, name: 'checkbox', id: 'Input', disabled: disabled, required: required
end