-
I'm developing a simple UI component library for Floem. Quick demo: One of my current roadblocks is handling of disabled state. My labeled checkbox is, much like floem's labeled checkbox, a composite. But while the disabled state seems to propagate properly to the child components in the floem implementation, it doesn't in mine. What should I do to have the disabled state propagate down to child components? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
First of all, this looks really cool! The disabled state isn't passed to child components though in Floem. Maybe it should? |
Beta Was this translation helpful? Give feedback.
-
Quick update to this thread in case someone finds it through a search engine later: as of e795021, Floem ensures that views pass their disabled state down to its descendants for styling purposes. If a parent is disabled, its descendants will apply disabled styling. |
Beta Was this translation helpful? Give feedback.
Quick update to this thread in case someone finds it through a search engine later: as of e795021, Floem ensures that views pass their disabled state down to its descendants for styling purposes. If a parent is disabled, its descendants will apply disabled styling.