Class: Inputs::Number::Cell

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

Constant Summary collapse

@@requested_args =
[:name]
@@default_args =
{
  value: '',
  label: '',
  placeholder: '',
  help: '',
  required: false,
  disabled: false,
  min: nil,
  max: nil,
  max_length: nil,
  step: 1,
  class: 'md-12'
}

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Cell



21
22
23
24
25
26
27
28
29
# File 'app/cells/lato_core/inputs/number/cell.rb', line 21

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

  set_conditions
end

Instance Method Details

#showObject



31
32
33
# File 'app/cells/lato_core/inputs/number/cell.rb', line 31

def show
  render 'show.html'
end