Class: Widgets::Index::Cell

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

Constant Summary collapse

@@requested_args =
[:records]
@@default_args =
{
  head: [],
  columns: [],
  index_url: nil,
  pagination: false,
  search: false,
  actions: {
    show: false,
    edit: false,
    delete: false,
    new: false
  },
  table: {
    fixed: false,
    height: nil
  },
  table_body: {
    hover: false
  },
  actions_on_start: false
}

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Cell

Returns a new instance of Cell.



31
32
33
34
35
36
37
38
39
# File 'app/cells/lato_core/widgets/index/cell.rb', line 31

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

  set_conditions
end

Instance Method Details

#showObject



41
42
43
# File 'app/cells/lato_core/widgets/index/cell.rb', line 41

def show
  render 'show.html'
end