Class: Elements::Table::Container::Cell

Inherits:
Cell
  • Object
show all
Defined in:
app/cells/lato_core/elements/table/container/cell.rb

Constant Summary collapse

@@requested_args =
[]
@@default_args =
{
  border: false,
  fixed: false,
  height: nil
}

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Cell

Returns a new instance of Cell.



13
14
15
16
17
18
19
20
21
# File 'app/cells/lato_core/elements/table/container/cell.rb', line 13

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

  set_conditions
end

Instance Method Details

#closeObject



27
28
29
# File 'app/cells/lato_core/elements/table/container/cell.rb', line 27

def close
  render 'close.html'
end

#openObject



23
24
25
# File 'app/cells/lato_core/elements/table/container/cell.rb', line 23

def open
  render 'open.html'
end