jkk / formative

Web forms for Clojure and ClojureScript - rendering, parsing, and validating
208 stars 18 forks source link

Add doc reg. attributes with data prefix will be rendered. #51

Open iku000888 opened 7 years ago

iku000888 commented 7 years ago

There is the following undocumented behaviour that is works well with bootstrap, which would be nice to have it right in the readme.

(f/render-field {:name :my-text :data-x 10 :data-y 20})
;; (nil [:input {:type "text", :name "my-text", :value "", :data-x 10, :data-y 20}])