Repeater question - probably an easy one

Hi all,

I think this is probably very simple but I can’t work it out.

I have a dataset with a search bar / button and repeater displaying content. Everything works well, except that when previewing the page the repeater pushes the rest of the content down the page before a search is made. So when the page loads you see the search bar and a load of blank space.

How can I set up the repeater so that it only pushes content down when a search is made please? It’s driving me nuts :slight_smile:

Nathan

You could use the collapse & expand properties. Here is an example.

First set your repeater to ‘collapsed on load’. Then add something like this code below.

export function searchButton_click(event) {
$w("#repeater1").expand();
}

Excellent thank you I’ll give it a try

Worked perfectly thank you!