Skip to content

Add filtering to api page#81

Merged
chrisdone merged 3 commits intochrisdone:mainfrom
austin-artificial:austin/fitler-api
Jan 15, 2025
Merged

Add filtering to api page#81
chrisdone merged 3 commits intochrisdone:mainfrom
austin-artificial:austin/fitler-api

Conversation

@austin-artificial
Copy link
Copy Markdown
Contributor

In the build script, we create a little index to use for searching through. At the moment, it just contains the text of the type/term name, and the dom ID of the relevant li element for that type/term.

Then when the filter string changes, we search through the list, matching the query text against the name of the function (by checking if its a substring or not), and hide any irrelevant type/terms.

@chrisdone chrisdone merged commit 5d84d82 into chrisdone:main Jan 15, 2025
@austin-artificial austin-artificial deleted the austin/fitler-api branch January 15, 2025 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants