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.
188 189 190 191 |
# File 'app/helpers/edgarj/list_drawer.rb', line 188 def initialize(edgarj_drawer, = {}) super(edgarj_drawer, ) #@belongs_to_link = true # make link on belongs_to end |
Instance Method Details
#td_options(rec, col) ⇒ Object
<td> options
add Edgarj.click_listCB() with base result. When the column is parent, do nothing.
197 198 199 200 201 |
# File 'app/helpers/edgarj/list_drawer.rb', line 197 def (rec, col) super.merge( style: 'cursor:pointer;', class: '_edgarj_list_column') end |