Class: Edgarj::ListDrawer::Normal

Inherits:
Base
  • Object
show all
Defined in:
app/helpers/edgarj/list_drawer.rb

Overview

Drawer for record list in Edgarj CRUD view.

Instance Method Summary collapse

Methods inherited from Base

#draw_column, #draw_column_header

Constructor Details

#initialize(edgarj_drawer, options = {}) ⇒ Normal

Returns a new instance of Normal.



42
43
44
# File 'app/helpers/edgarj/list_drawer.rb', line 42

def initialize(edgarj_drawer, options = {})
  super(edgarj_drawer, options)
end

Instance Method Details

#td_options(rec, col) ⇒ Object

<td> options

merge css to let Edgarj.click_listCB() work with base result. When the column is parent, do nothing.



50
51
52
# File 'app/helpers/edgarj/list_drawer.rb', line 50

def td_options(rec, col)
  super.merge(class: '_edgarj_list_column'){|key, _old, _new| [_old, _new].flatten}
end