Class: Gridify::GridColumn
- Inherits:
-
Object
- Object
- Gridify::GridColumn
- Defined in:
- lib/gridify/grid_column.rb
Instance Method Summary collapse
- #fixed_width ⇒ Object
-
#initialize(options) ⇒ GridColumn
constructor
initial hide state (false).
- #properties ⇒ Object
- #resizable ⇒ Object
- #to_json ⇒ Object
- #update(options) ⇒ Object
Constructor Details
#initialize(options) ⇒ GridColumn
initial hide state (false)
35 36 37 |
# File 'lib/gridify/grid_column.rb', line 35 def initialize() update end |
Instance Method Details
#fixed_width ⇒ Object
60 61 62 63 64 65 66 67 68 |
# File 'lib/gridify/grid_column.rb', line 60 def fixed_width if @fixed_width==false false elsif @fixed_width.nil? !resizable else @fixed_width end end |
#properties ⇒ Object
47 48 49 |
# File 'lib/gridify/grid_column.rb', line 47 def properties jqgrid_properties end |
#resizable ⇒ Object
51 52 53 54 55 56 57 58 |
# File 'lib/gridify/grid_column.rb', line 51 def resizable if @resizable==false false else # true or nil true end end |
#to_json ⇒ Object
43 44 45 |
# File 'lib/gridify/grid_column.rb', line 43 def to_json properties.to_json #_with_js end |
#update(options) ⇒ Object
39 40 41 |
# File 'lib/gridify/grid_column.rb', line 39 def update() .each {|atr, val| send( "#{atr}=", val )} end |