Skip to content

How to Use Dynamic Property Values (Props - Attributes) of DataSources in HTML Fragments #6402

Closed Answered by LIlGG
LIlGG asked this question in Q&A
Discussion options

You must be logged in to vote

The issue has been resolved. It is necessary to convert the TSX object into a JSON string format, as shown below:

<h3
  data-gjs-type="text"
  data-gjs-prop={JSON.stringify({
    type: 'data-variable',
    default: 'default',
    path: 'datasource.id3.someValue',
  })}
/>

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by LIlGG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant