I made this addition as I couldn't see another way to get bootstrap's form validation state styles working.
The implementation is based on event in alert, but with semantics like visible?. The valid? attribute should be a decision function that takes the document atom and returns, for each validation state of the container's children, the name of a class corresponding to that state. The children can then inherit the styles of these classes. For example:
I made this addition as I couldn't see another way to get bootstrap's form validation state styles working.
The implementation is based on
event
inalert
, but with semantics likevisible?
. Thevalid?
attribute should be a decision function that takes the document atom and returns, for each validation state of the container's children, the name of a class corresponding to that state. The children can then inherit the styles of these classes. For example: