[wp-trac] [WordPress Trac] #33507: Allow widget controls to be JS-driven
WordPress Trac
noreply at wordpress.org
Tue Jan 3 19:54:45 UTC 2017
#33507: Allow widget controls to be JS-driven
-------------------------+--------------------------------------
Reporter: westonruter | Owner: westonruter
Type: enhancement | Status: accepted
Priority: normal | Milestone: Future Release
Component: Widgets | Version: 3.9
Severity: normal | Resolution:
Keywords: | Focuses: javascript, performance
-------------------------+--------------------------------------
Comment (by westonruter):
I just released [https://github.com/xwp/wp-js-widgets JS Widgets] v0.2.0
which includes JS-driven adaptations of all the core widgets (aside from
Links), as well as a Post Collection bonus widget. Another standalone
widget plugin called [https://github.com/xwp/wp-next-recent-posts-widget
Next Recent Posts Widget] takes the concept of JS widgets a step further
and uses client-side JS templating for rendering the widget as well,
implementing instant updates to changes. In this widget, selective refresh
used to obtain `rendered` REST API data, while the `raw` value is used
until the `rendered` data is returned. So this means that when entering
`--` into the widget's title will result in `--` appearing in the rendered
widget while waiting for the server to return with `—` that `wptexturize`
applies. In this way it behaves similarly to #33738.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33507#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list