class ExtDatecolumn

Public Class Methods

new(config, parent) click to toggle source
Calls superclass method ExtNode::new
# File lib/extclasses/datecolumn.rb, line 7
def initialize(config, parent)
  @default_config = {
    format: "d/m/Y" 
  }

  super "datecolumn", config, parent
end

Public Instance Methods

to_extjs(at_deep = 0) click to toggle source
Calls superclass method ExtNode#to_extjs
# File lib/extclasses/datecolumn.rb, line 15
def to_extjs(at_deep = 0)
  if self.child_of? "editorgrid"
    @config.merge! :editor => { :xtype => "datefield", format: "d/m/Y" }
  end
  super at_deep 
end