Replies: 1 comment
-
I'd probably suggest performing the logic in the component editor.on("component:add", (comp) => {
if (comp.is('my-custom-component')) {
// Update component prop/attribute in order to reflect it in traits
comp.set('object_types', '1')
}
}); |
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
-
Hi, I'm trying to set a default value for custom component on component:add where I've to perform certain logic there, I tried to set the value but neither it triggers change:object_types nor it shows selected option in trait panel. Any help is appreciated. https://jsfiddle.net/3rwn1a9p/125/
Beta Was this translation helpful? Give feedback.
All reactions