class IntegerCommaInput
Public Instance Methods
format(value)
click to toggle source
# File lib/bull/ui_core.rb, line 294 def format value format_integer value end
parse(val)
click to toggle source
# File lib/bull/ui_core.rb, line 298 def parse val begin Integer(val.gsub(',', '')) rescue nil end end
update_state(event)
click to toggle source
# File lib/bull/ui_core.rb, line 306 def update_state event params.on_change parse(event.target.value) end