Class: WidgetPartial

wp.customize.widgetsPreview. WidgetPartial


new WidgetPartial()

Partial representing a widget instance.
Since:
  • 4.5.0
Source:

Extends

Methods


initialize(id, options)

Constructor.
Parameters:
Name Type Description
id string Partial ID.
options Object
Properties
Name Type Description
params Object
Since:
  • 4.5.0
Source:

refresh()

Refresh widget partial.
Source:
Returns:
Type
Promise

renderContent(placement)

Send widget-updated message to parent so spinner will get removed from widget control.
Parameters:
Name Type Description
placement wp.customize.selectiveRefresh.Placement
Source: