Can we listen to change in style in component? #6310
Unanswered
azan-baloch
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hey @azan-baloch please see: Also, you can hook into backbone and listen for change events to the style property of the Stylable model, see source: |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey @artf thanks for this amazing project❤️
I am making a component and i want to know if there’s a way to listen for style changes when someone updates styles from the Style Manager.
For example:
view: { init() { this.listenTo(this, "change:style", this.renderTopBarComponent); },
Beta Was this translation helpful? Give feedback.
All reactions