Class: Madmin::Field::Select
- Inherits:
-
Madmin::Field
- Object
- Madmin::Field
- Madmin::Field::Select
- Defined in:
- lib/madmin/field/select.rb
Overview
This field represents a select dropdown value.
Instance Attribute Summary collapse
-
#select_options ⇒ Object
readonly
Returns the value of attribute select_options.
Attributes inherited from Madmin::Field
#form, #index, #key, #label, #model, #options, #show, #type
Instance Method Summary collapse
-
#initialize(args) ⇒ Select
constructor
A new instance of Select.
Methods inherited from Madmin::Field
#strong_params_keys, #to_partial_path, #value_for
Constructor Details
#initialize(args) ⇒ Select
8 9 10 |
# File 'lib/madmin/field/select.rb', line 8 def initialize(args) = option_or_default(:collection, []) end |
Instance Attribute Details
#select_options ⇒ Object (readonly)
Returns the value of attribute select_options.
6 7 8 |
# File 'lib/madmin/field/select.rb', line 6 def end |