I success change the text font's size in a list, however all contents become the same.....
no change even I refresh the dataset, Who can show me some hints?
$w('#text1') is one of the text inside a list.
export function button2_click(event, $w) {
if ($w('#button2').label === 'Font Size >') {
$w('#text1').html = `<span style="font-size: 1.8em"> ${$w("#text1").text} </span>`;
$w('#button2').label = 'Font Size >>';}
else if ($w('#button2').label === 'Font Size >>') {
$w('#text1').html = `<span style="font-size: 2.0em"> ${$w("#text1").text} </span>`;
$w('#button2').label = 'Font Size >>>';}
else if ($w('#button2').label === 'Font Size >>>') {
$w('#text1').html = `<span style="font-size: 1.6em"> ${$w("#text1").text} </span>`;
$w('#button2').label = 'Font Size >';}
$w('#dataset2').refresh();
}
Hi,
Stone, sounds like a good idea!
Roi
It is solved, very simple to place the button inside repeater. : )