Class: ActiveList::Definition::CheckBoxColumn

Inherits:
FieldColumn show all
Defined in:
lib/active_list/definition/check_box_column.rb

Instance Attribute Summary collapse

Attributes inherited from FieldColumn

#form_name

Attributes inherited from AbstractColumn

#id, #name, #options, #table

Instance Method Summary collapse

Methods inherited from FieldColumn

#header_code

Methods inherited from AbstractColumn

#check_options!, #exportable?, #header_code, #hidden?, #short_id, #sortable?, #unique_id

Constructor Details

#initialize(table, name, options = {}) ⇒ CheckBoxColumn

Returns a new instance of CheckBoxColumn.



8
9
10
11
# File 'lib/active_list/definition/check_box_column.rb', line 8

def initialize(table, name, options = {})
  super(table, name, options)
  @form_value = options.delete(:form_value)
end

Instance Attribute Details

#form_valueObject (readonly)

Returns the value of attribute form_value.



6
7
8
# File 'lib/active_list/definition/check_box_column.rb', line 6

def form_value
  @form_value
end