Method: Fancygrid::Column#initialize
- Defined in:
- lib/fancygrid/column.rb
#initialize(parent, name, options = {}) ⇒ Column
Returns a new instance of Column.
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/fancygrid/column.rb', line 38 def initialize(parent, name, = {}) super(parent, name, ) @position = .fetch(:position, 0) @width = .fetch(:width, nil) @hidden = .fetch(:hidden, false) self.visible = .fetch(:visible, self.visible) @searchable = .fetch(:searchable, false) @search_value = .fetch(:search_value, nil) @search_operator = .fetch(:search_operator, nil) @search_options = .fetch(:search_options, nil) @selectable = .fetch(:selectable, false) @value_proc = .fetch(:value_proc, nil) @human_name = .fetch(:human_name, nil) @th_class = .fetch(:th_class, "") @td_class = .fetch(:td_class, "") @formatable = self.root.respond_to?(self.formatter_method) end |