class ExtCurrency
depend on extjs currenct plugin
Public Class Methods
new(config, parent)
click to toggle source
Calls superclass method
ExtNode::new
# File lib/extplugins/currency.rb, line 10 def initialize(config, parent) @default_config = { :width => 150, :cls => "number", :plugins => [{ ptype: "currency" }, { ptype: "multiple_validations"}], :currencyConfig => {} } if config[:decimalPrecision] @default_config[:currencyConfig].merge!({ :decimalPrecision => config[:decimalPrecision] }) config.delete :decimalPrecision end super "textfield", config, parent end