Update specific traits on page change (add, remove, rename) #5449
Unanswered
nguyenvoanhkhoa1
asked this question in
Q&A
Replies: 1 comment
-
You can subscribe to page events and update component traits accordingly |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am making a custom trait for the link component, that allows users to select the page. If there is any change related to a page like add, remove, or rename, the custom trait input select does not update the UI at all. I tried to use the query selector to change the input on change but could not select due to the trait input HTML element is not append to the trait manager. I tried
editor.refresh()
too but it is not working (I know that). I have checked and can not find any method to update the trait.Can someone know and help me with this issue? Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions