Replies: 1 comment 2 replies
-
So, you don't need the data source to be connected?! Do you just need its value on block creation? FYI DataSources module is still in active development, so the API could change |
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
-
I am using dynamic values in the project and hope to extract all the dynamic values needed in the block, such as text. After that, I can simply modify this value to dynamically change the component instances created based on this block. For example, using the following approach:
This allows my Block to set the initial value through dynamic values.
However, I need to create multiple Component instances using this Block. At this point, if I change the value of datasource.id1.content, all Component instances created through this Block will change. Is it possible for each Component instance to have an independent dynamic value namespace? For example,
datasource.componentId.id1.content
or another method?Additionally, I have a question: I can set the props of a component/block using
data-gjs-xxx
, but I cannot set the attrs. Is there another way to set attrs? For example, the following setting for props is effective:But the following setting for attrs is ineffective:
Beta Was this translation helpful? Give feedback.
All reactions