We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi there. Is it possible to "pull out" label text from html5 data attribute? If yes, how? Thank you very much in ahead.
The text was updated successfully, but these errors were encountered:
Yes thats possible. Just read the data attribute with javascript and set it as the value for the "navDropdownLabel" option.
html: <ul data-dropdown-label="more ▾"></ul> js: navDropdownLabel: document.querySelector('[data-dropdown-label]').dataset.dropdownLabel
<ul data-dropdown-label="more ▾"></ul>
navDropdownLabel: document.querySelector('[data-dropdown-label]').dataset.dropdownLabel
Sorry, something went wrong.
Thank you very much!
No branches or pull requests
Hi there.
Is it possible to "pull out" label text from html5 data attribute? If yes, how? Thank you very much in ahead.
The text was updated successfully, but these errors were encountered: