daisho
Version:
Modular dashboard framework
24 lines (15 loc) • 404 B
text/coffeescript
import Text from 'el-controls/src/controls/text'
import html from '../../templates/controls/numeric'
class Numeric extends Text
tag: 'numeric'
html: html
numericValue: ()->
val = parseFloat .ref.get(.name)
val = null if isNaN val
return val
getValue: ()->
val = super
val = parseFloat val
val = null if isNaN val
return val
export default Numeric