 (def input-app-init
   {:value ""})
 
+(defn input-value [app] (get app :value))
+
 (defn input [app owner {:keys [class+
                                type
                                onChange-valid?-fn
                                onChange-updated-fn
                                onKeyPress-fn
-                               placeholder]
+                               placeholder
+                               min max step]
                         :or {class+ ""
                              type "text"
                              onChange-valid?-fn (fn [_ _] true)


                        )
               (dom/br nil)
               (om/build paginator app {:opts {:chan-update chan-update}})
               (dom/br nil)


    (om/transact! app #(assoc % :has-warning? true :text-warning "Пустое поле")))
  true)


(defn input-vldfn-not-empty-or-0 [app v]
  (helper-p-clean app)
  (input-css-string-has?-clean app)
  (when (or (= (count (.trim v)) 0) (= (.valueOf (new js/Number v)) 0))
    (om/transact! app #(assoc % :has-warning? true :text-warning "Показание пустое либо равно нулю")))
  true)

;; END input
;;..................................................................................................

