Class: SimpleFormWithClientValidation::Inputs::PriorityInput
- Inherits:
-
CollectionSelectInput
- Object
- Base
- CollectionInput
- CollectionSelectInput
- SimpleFormWithClientValidation::Inputs::PriorityInput
- Defined in:
- lib/simple_form_with_client_validation/inputs/priority_input.rb
Instance Attribute Summary
Attributes inherited from Base
#attribute_name, #column, #html_classes, #input_html_classes, #input_html_options, #input_type, #options, #reflection
Instance Method Summary collapse
Methods inherited from CollectionInput
boolean_collection, #input_options
Methods inherited from Base
disable, enable, #initialize, #input_options
Methods included from SimpleFormWithClientValidation::I18nCache
#get_i18n_cache, #i18n_cache, #reset_i18n_cache
Methods included from Components::Readonly
Methods included from Components::Placeholders
#placeholder, #placeholder_text
Methods included from Components::Pattern
Methods included from Components::MinMax
Methods included from Components::Minlength
Methods included from Components::Maxlength
Methods included from Components::LabelInput
Methods included from Components::HTML5
Methods included from Components::Hints
Methods included from Components::Errors
Methods included from Helpers::Validators
Constructor Details
This class inherits a constructor from SimpleFormWithClientValidation::Inputs::Base
Instance Method Details
#input ⇒ Object
4 5 6 7 |
# File 'lib/simple_form_with_client_validation/inputs/priority_input.rb', line 4 def input @builder.send(:"#{input_type}_select", attribute_name, input_priority, , ) end |
#input_priority ⇒ Object
9 10 11 |
# File 'lib/simple_form_with_client_validation/inputs/priority_input.rb', line 9 def input_priority [:priority] || SimpleFormWithClientValidation.send(:"#{input_type}_priority") end |