Class: PushType::TagListField
Instance Attribute Summary
Attributes inherited from FieldType
#model, #name
Instance Method Summary
collapse
Methods inherited from FieldType
#css_class, #form_helper, #initialize, #json_primitive, #json_value, #kind, #label, on_class, on_instance, options, #primitive, #template, #value
Instance Method Details
8
9
10
|
# File 'app/fields/push_type/tag_list_field.rb', line 8
def choices
json_value || []
end
|
#field_options ⇒ Object
16
17
18
|
# File 'app/fields/push_type/tag_list_field.rb', line 16
def field_options
{}
end
|
#html_options ⇒ Object
20
21
22
|
# File 'app/fields/push_type/tag_list_field.rb', line 20
def html_options
super.merge(multiple: multiple?)
end
|
#multiple? ⇒ Boolean
12
13
14
|
# File 'app/fields/push_type/tag_list_field.rb', line 12
def multiple?
true
end
|