Class: Input::Nselect::Cell

Inherits:
Cell
  • Object
show all
Defined in:
app/cells/lato_view/input/nselect/cell.rb

Constant Summary collapse

@@widths =
VIEW_INPUTWIDTH

Instance Attribute Summary collapse

Instance Method Summary collapse

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_classObject

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_inputsObject

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

#widthObject

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

#showObject



22
23
24
# File 'app/cells/lato_view/input/nselect/cell.rb', line 22

def show
  render "show.html"
end