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
I'd like to set a data attribute on widgets, as per https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes
I've tried using create_element('div', {'data-my-prop': 'my value'}, ...) but something in Flexx seems to strip them out.
create_element('div', {'data-my-prop': 'my value'}, ...)
Any clues?
The text was updated successfully, but these errors were encountered:
I wonder whether the way the attribute is set works:
flexx/flexx/ui/_widget.py
Line 502 in 69b85b3
Could be that node.setAttribute is needed.
Sorry, something went wrong.
No branches or pull requests
I'd like to set a data attribute on widgets, as per https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes
I've tried using
create_element('div', {'data-my-prop': 'my value'}, ...)
but something in Flexx seems to strip them out.Any clues?
The text was updated successfully, but these errors were encountered: