@nicole81813 you can apply it to dynamic elements and repeaters as well.
Let’s say you have a field key “description” in your database collection, and you wish to change the line-height of the description.
Then you can (for example) do something like this:
-
connect the repeater rich text element to the dateset “description” field.
-
Add this code:
$w.onReady(() => {
$w("#dataset1").onReady(() => {
$w("#repeater1").onItemReady($item => {
$item("#description").html =
`<span style="line-height:1.8px">${$item("#description").text}</span>`;
})
})
})