-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Refactors widget attribute and refresh handling #9101
New issue
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
base: master
Are you sure you want to change the base?
Conversation
Confirmed: saqimtiaz has already signed the Contributor License Agreement (see contributing.md) |
📊 Build Size Comparison:
|
Branch | Size |
---|---|
Base (master) | 2528.0 KB |
PR | 2529.4 KB |
Diff: ⬆️ Increase: +1.4 KB
✅ Deploy Preview for tiddlywiki-previews ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
7ace65f
to
2bb7c79
Compare
48cafd3
to
a7434b1
Compare
41260fc
to
9d39db7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this PR also contains changes to the button-widget, I think the PR title should be adjusted.
089c17f
to
5069cc6
Compare
@pmario could you please attempt to engage with the substance of the PR, rather than serving as a syntax checker? The latter is of absolutely no value on a PR clearly described as exploratory and in draft status, whereas actual feedback on the changes explored here would be very helpful. |
5069cc6
to
a13279a
Compare
e08e7bd
to
205293b
Compare
Work in progress:
This is an exploratory PR to see if a refactor of the base widget class that changes how we calculate and refresh attributes towards a more declarative style can be made while staying backwards compatible.
data-
andstyle.
attributes for the image widget, correcting an omission in Add data attribute support to button and other widgets #7769assignAttributes
which allows it to accept an additional hashmap (additionalAttributesMap
) of mappings from widget attributes to DOM attributes. This can be used to simplify both the assignment of DOM attributes as well as their refresh.