Table search using Hyperscript #6948
schneekluth
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Recently I was dealing with large tables in MKDocs Material and was looking for an easy way to search the table data. I stumbled across Hyperscript.
Turns out Hyperscript handles this task pretty well. My method:
mkdocs.yaml
:<div>
right before a table element:You can now simply enter search values in the
<input>
element. Values can be cleared using the button next to the input element or by hitting escape key:Additionally I applied some CSS styling to the input element to use full width, font size and match the theme's colors:
Beta Was this translation helpful? Give feedback.
All reactions