Class: Input::Nselect::Cell
- Inherits:
-
Cell
- Object
- Cell
- Input::Nselect::Cell
- Defined in:
- app/cells/lato_view/input/nselect/cell.rb
Constant Summary collapse
- @@widths =
VIEW_INPUTWIDTH
Instance Attribute Summary collapse
-
#custom_class ⇒ Object
Returns the value of attribute custom_class.
-
#select_inputs ⇒ Object
Returns the value of attribute select_inputs.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(width: 'large', custom_class: '', select_inputs: []) ⇒ Cell
constructor
Select input structure: ”, label: ”, api_url: ”, value: ”, value_field: ”, label_field: ”, width: ”.
- #show ⇒ Object
Constructor Details
#initialize(width: 'large', custom_class: '', select_inputs: []) ⇒ Cell
Select input structure: ”, label: ”, api_url: ”, value: ”, value_field: ”, label_field: ”, width: ”
10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/cells/lato_view/input/nselect/cell.rb', line 10 def initialize(width: 'large', custom_class: '', select_inputs: []) # save params @width = width @custom_class = custom_class @select_inputs = select_inputs # check params check_params end |
Instance Attribute Details
#custom_class ⇒ Object
Returns the value of attribute custom_class.
6 7 8 |
# File 'app/cells/lato_view/input/nselect/cell.rb', line 6 def custom_class @custom_class end |
#select_inputs ⇒ Object
Returns the value of attribute select_inputs.
6 7 8 |
# File 'app/cells/lato_view/input/nselect/cell.rb', line 6 def select_inputs @select_inputs end |
#width ⇒ Object
Returns the value of attribute width.
6 7 8 |
# File 'app/cells/lato_view/input/nselect/cell.rb', line 6 def width @width end |
Instance Method Details
#show ⇒ Object
22 23 24 |
# File 'app/cells/lato_view/input/nselect/cell.rb', line 22 def show render "show.html" end |