Class: Edgarj::ListDrawer::Normal
- Defined in:
- app/helpers/edgarj/list_drawer.rb
Overview
Drawer for record list in Edgarj CRUD view.
Instance Method Summary collapse
-
#initialize(edgarj_drawer, options = {}) ⇒ Normal
constructor
A new instance of Normal.
-
#td_options(rec, col) ⇒ Object
<td> options.
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, = {}) super(edgarj_drawer, ) 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 (rec, col) super.merge(class: '_edgarj_list_column'){|key, _old, _new| [_old, _new].flatten} end |