I have this repeater and I want to delete/hide the first button, if I delete it, all the buttons are removed
- you can’t delete buttons
- you can HIDE or COLLAPSE
- If working inside a REPEATER you will have to use → $item instead of $w
Example:
$w.onReady(()=>{
$w('#REPEATER_ID_HERE').onItemReady(($item, itemData, index)=>{
$item('#BUTTON_ID_HERE').onClick((event)=>{
console.log(event.target.id);
$item('#BUTTON_ID_HERE').hide('fade');
});
});
});
but this will fade all the buttons as they all have the same button id