Class: PushType::TagListField

Inherits:
FieldType show all
Defined in:
app/fields/push_type/tag_list_field.rb

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

Constructor Details

This class inherits a constructor from PushType::FieldType

Instance Method Details

#choicesObject



8
9
10
# File 'app/fields/push_type/tag_list_field.rb', line 8

def choices
  json_value || []
end

#field_optionsObject



16
17
18
# File 'app/fields/push_type/tag_list_field.rb', line 16

def field_options
  {}
end

#html_optionsObject



20
21
22
# File 'app/fields/push_type/tag_list_field.rb', line 20

def html_options
  super.merge(multiple: multiple?)
end

#multiple?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'app/fields/push_type/tag_list_field.rb', line 12

def multiple?
  true
end