Class: Gridify::GridColumn
- Inherits:
-
Object
- Object
- Gridify::GridColumn
- Defined in:
- lib/jquery/gridify/grid_column.rb
Instance Method Summary collapse
- #fixed_width ⇒ Object
-
#initialize(options) ⇒ GridColumn
constructor
A new instance of GridColumn.
- #properties ⇒ Object
- #resizable ⇒ Object
- #to_json ⇒ Object
- #update(options) ⇒ Object
Constructor Details
#initialize(options) ⇒ GridColumn
Returns a new instance of GridColumn.
41 42 43 |
# File 'lib/jquery/gridify/grid_column.rb', line 41 def initialize() update end |
Instance Method Details
#fixed_width ⇒ Object
66 67 68 69 70 71 72 73 74 |
# File 'lib/jquery/gridify/grid_column.rb', line 66 def fixed_width if @fixed_width==false false elsif @fixed_width.nil? !resizable else @fixed_width end end |
#properties ⇒ Object
53 54 55 |
# File 'lib/jquery/gridify/grid_column.rb', line 53 def properties jqgrid_properties end |
#resizable ⇒ Object
57 58 59 60 61 62 63 64 |
# File 'lib/jquery/gridify/grid_column.rb', line 57 def resizable if @resizable==false false else # true or nil true end end |
#to_json ⇒ Object
49 50 51 |
# File 'lib/jquery/gridify/grid_column.rb', line 49 def to_json properties.to_json #_with_js end |
#update(options) ⇒ Object
45 46 47 |
# File 'lib/jquery/gridify/grid_column.rb', line 45 def update() .each { |atr, val| send("#{atr}=", val) } end |