Search for collapsibles in a page
Hi
I have a page with with one Search component and 30 Collapsibles.
What i need the search component to do is to take me to a Collapsible if i search for it, similiar to Ctrl+f.
Could you please help me with that?
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hi
I have a page with with one Search component and 30 Collapsibles.
What i need the search component to do is to take me to a Collapsible if i search for it, similiar to Ctrl+f.
Could you please help me with that?
Hello! Not sure I understand, do you need something like this https://developer.mozilla.org/en-US/d...?
Hi Maryna
I'll giva an example.
i have 30 Collapsibles on my page. One of the collapsibles has the text "Disney World". If i type in "Disney world" in the search component and press enter, i need the search to take me to the part of the page where the Collapsible "Disney World" is placed.
Basicly i need the search component to do exactly what a ctrl+f does in any webbrowser.
Thanks for answering!
Hi Peter,
Please follow the link we provided. This is what you need. Find a needed Collapsible using JavaScript, and call scrollIntoView on this collapsible.
Hi
Please can you help med with this one. Can you give me a detalied explenation of how to make this work. I've tried for a week and i cant get it to work.
Sure. Could you please show us what you tried? What exactly doesn't work?
I've tried all sorts of combinations,i dont remember them all. But nothing i tried works so far. Could you be explain to me how to make this work? Its probably my last step to finish the app
Hello! We don't know your page structure so it's hard to say how to find necessary collapsible. Are you able to find needed collapsible?