[wp-trac] [WordPress Trac] #38889: Proposition to allow an api.Value() using asynchronous callbacks
WordPress Trac
noreply at wordpress.org
Sun Nov 27 19:27:31 UTC 2016
#38889: Proposition to allow an api.Value() using asynchronous callbacks
-------------------------------------+------------------------------
Reporter: nikeo | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: trunk
Severity: normal | Resolution:
Keywords: reporter-feedback close | Focuses: javascript
-------------------------------------+------------------------------
Changes (by westonruter):
* keywords: reporter-feedback => reporter-feedback close
Comment:
@nikeo I think it is natural to fetch the settings for the controls in a
given section upon the expansion of the section, and not before. I mean,
if we did this for nav menu items, then we wouldn't know that the settings
for nav menu items would need to be fetched. We'd only know to fetch them
once the section is expanded. As such, I think there should be a spinner
that shows inside of a section while this request is being made, and then
when it completes the nav menu item controls would get populated into it.
If you wanted to do this the other way around, where you programmatically
know up-front that you need to populate a section with controls, then you
could do that Ajax request and create all of the settings and controls (as
in the `populateFooSectionControls` example above), and then after
completed, expand the section. In either case, however, you'll need a
spinner to show that some Ajax request is being done.
I'm thinking this can be closed as `maybelater`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38889#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list