class FloatCommaInput
Public Instance Methods
format(value)
click to toggle source
# File lib/bull/ui_core.rb, line 344 def format value format_float value end
parse(val)
click to toggle source
# File lib/bull/ui_core.rb, line 348 def parse val begin Float(val.gsub(',', '')) rescue nil end end
update_state(event)
click to toggle source
# File lib/bull/ui_core.rb, line 356 def update_state event params.on_change parse(event.target.value) end