You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
It would be very useful if we could set the selected value with a URL query parameter. I'm not sure if there's a way to achieve this manually.
Describe the solution you'd like
To be able to add the value I want for the select through the URL, something like: ?select-linux-distro=arch-linux
Describe alternatives you've considered
I've been trying to set it manually through a JS listener but haven't been very successful
The text was updated successfully, but these errors were encountered:
If anyone's interested, I figured a way with onload and onhashchange listeners:
The id of the select element is the label in lower-case and hyphenated, so just get the select element by that id and set the value taken from the URL.
Search for the element that has data-select-content attribute as the original lower-case and hyphenated value of the select and remove the class docsify-select__content--active.
Search for the element that has data-select-content attribute as the new lower-case and hyphenated value of the select and add the class docsify-select__content--active.
Still would be cool to have it included in the plugin!
Is your feature request related to a problem? Please describe.
It would be very useful if we could set the selected value with a URL query parameter. I'm not sure if there's a way to achieve this manually.
Describe the solution you'd like
To be able to add the value I want for the select through the URL, something like: ?select-linux-distro=arch-linux
Describe alternatives you've considered
I've been trying to set it manually through a JS listener but haven't been very successful
The text was updated successfully, but these errors were encountered: