Class: Partial

wp.customize.selectiveRefresh. Partial


new Partial(id, options)

A Customizer Partial. A partial provides a rendering of one or more settings according to a template.
Parameters:
Name Type Description
id string Unique identifier for the control instance.
options object Options hash for the control instance.
Properties
Name Type Description
params object
Properties
Name Type Description
type string Type of partial (e.g. nav_menu, widget, etc)
selector string jQuery selector to find the container element in the page.
settings array The IDs for the settings the partial relates to.
primarySetting string The ID for the primary setting the partial renders.
fallbackRefresh bool Whether to refresh the entire preview in case of a partial refresh failure.
Since:
  • 4.5.0
Source:
See:
  • PHP class WP_Customize_Partial.

Extends

  • wp.customize.Class