reagent-project / reagent-forms

Bootstrap form components for Reagent
339 stars 78 forks source link

Placeholder attribute #53

Closed deadghost closed 9 years ago

deadghost commented 9 years ago

A placeholder key should be available. For example:

[:div {:field :datepicker
       :id :date
       :date-format "mm/dd/yyyy"
       :placeholder "Date"}]

should result in:

...
<input 
  placeholder="Date" 
  readonly="" 
  class="form-control" 
  data-reactid=".0.0.0.0.0.0.0.0" 
  type="text">
...
yogthos commented 9 years ago

should be fixed in 0.5.1, just pushed to clojars