Hi…
I’m trying to do a social media icons that is linked to a database of my website members,
but when the data is empty i need the icon to hide and the other icons on the same row to rearrange in the Middle of the page but still cant do that as it’s not collapsed only hiding
$w("#myDataset").onReady( () => {
let item = $w("#myDataset").getCurrentItem();
if (item.image) {
$w("#imageElement").show();
} else {
$w("#imageElement").collapse();
$w("#imageElement").hide();
}
} );
this is the code that i used to hide an empty Elements
So how can I hide & collapse an empty icons that is in the same row then rearrange them in the middle of my page with same space in between and in many rows