Browse Source

Added integer ui element.

Martin Edenhofer 8 years ago
parent
commit
e9dc5a3ea0
1 changed files with 6 additions and 0 deletions
  1. 6 0
      app/assets/javascripts/app/controllers/_ui_element/integer.coffee

+ 6 - 0
app/assets/javascripts/app/controllers/_ui_element/integer.coffee

@@ -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 ) )