Added integer ui element.

This commit is contained in:
Martin Edenhofer 2016-05-20 04:30:15 +02:00
parent 20bce3118c
commit e9dc5a3ea0

View file

@ -0,0 +1,6 @@
# coffeelint: disable=camel_case_classes
class App.UiElement.integer
@render: (attribute) ->
attribute.type = 'number'
attribute.step = '1'
$( App.view('generic/input')( attribute: attribute ) )