reagent-project / reagent-forms

Bootstrap form components for Reagent
339 stars 78 forks source link

:disabled option should take a function #59

Closed erikcw closed 6 years ago

erikcw commented 9 years ago

The :disabled option for fields should take a function, similar to :visible? so that a field's disabled status can be changed dynamically as other form elements modify the contents of the atom.

yogthos commented 9 years ago

That sounds reasonable, would you be up for doing a pr by any chance? :)

erikcw commented 9 years ago

Sure, no problem.

yogthos commented 9 years ago

excellent :)

smogg commented 6 years ago

It's been a while and I don't think this was ever implemented. Would you accept a PR @yogthos? My first thought is to implement it in reagent-forms.macros/render-element.

yogthos commented 6 years ago

yeah definitely

smogg commented 6 years ago

I think this can be closed since #125 and #126 were merged