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.



188
189
190
191
# File 'app/helpers/edgarj/list_drawer.rb', line 188

def initialize(edgarj_drawer, options = {})
  super(edgarj_drawer, options)
 #@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 td_options(rec, col)
  super.merge(
      style:  'cursor:pointer;',
      class:  '_edgarj_list_column')
end