Class: Inputs::Multipleselect::Cell

Inherits:
Cell
  • Object
show all
Defined in:
app/cells/lato_core/inputs/multipleselect/cell.rb

Constant Summary collapse

@@requested_args =
[:name]
@@default_args =
{
  label: '',
  help: '',
  class: 'md-12',
  selects: [] # {name: '', label: '', api: '', value: '', class: ''}
}

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Cell

Returns a new instance of Cell.



14
15
16
17
18
19
20
21
22
# File 'app/cells/lato_core/inputs/multipleselect/cell.rb', line 14

def initialize(args = {})
  @args = validate_args(
    args: args,
    requested_args: @@requested_args,
    default_args: @@default_args
  )

  set_conditions
end

Instance Method Details

#showObject



24
25
26
# File 'app/cells/lato_core/inputs/multipleselect/cell.rb', line 24

def show
  render 'show.html'
end