Class: Trestle::Form::Fields::TagSelect
- Inherits:
-
Select
- Object
- Trestle::Form::Field
- Select
- Trestle::Form::Fields::TagSelect
- Defined in:
- lib/trestle/form/fields/tag_select.rb
Instance Attribute Summary
Attributes inherited from Select
Attributes inherited from Trestle::Form::Field
#block, #builder, #name, #options, #template
Instance Method Summary collapse
- #default_html_options ⇒ Object
-
#initialize(builder, template, name, options = {}, html_options = {}) ⇒ TagSelect
constructor
A new instance of TagSelect.
Methods inherited from Select
Methods inherited from Trestle::Form::Field
#defaults, #disabled?, #errors, #field, #form_group, #normalize_options!, #readonly?, #render
Constructor Details
#initialize(builder, template, name, options = {}, html_options = {}) ⇒ TagSelect
Returns a new instance of TagSelect.
7 8 9 |
# File 'lib/trestle/form/fields/tag_select.rb', line 7 def initialize(builder, template, name, ={}, ={}) super(builder, template, name, nil, , ) end |
Instance Method Details
#default_html_options ⇒ Object
11 12 13 |
# File 'lib/trestle/form/fields/tag_select.rb', line 11 def super.merge(multiple: true, class: ["tag-select"], data: { tags: true }) end |