Class: ChipsSelectPreview
- Inherits:
-
Lookbook::Preview
- Object
- Lookbook::Preview
- ChipsSelectPreview
- Defined in:
- lib/lookbook/chips_select_preview.rb
Instance Method Summary collapse
Instance Method Details
#default(label: 'Chips Select', disabled: false, required: false) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/lookbook/chips_select_preview.rb', line 6 def default(label: 'Chips Select', disabled: false, required: false) render 'common/form', helper_name: 'material_chips_select', label: label, name: 'checkbox', id: 'Input', disabled: disabled, value: [], options: [ { value: '1', label: 'Option 1' }, { value: '2', label: 'Option 2' }, { value: '3', label: 'Option 3' } ] end |