Namespace: selectiveRefresh

wp.customize. selectiveRefresh

Classes

Partial
Placement

Members


addedContent

The content for the partial when refreshed.
Source:

container

DOM element which contains the placement's contents. This will be null if the startNode and endNode do not point to the same DOM element, such as in the case of a sidebar partial. This container element itself will be replaced for partials that have containerInclusive param defined as true.
Source:

context

Context data. This provides information about the placement which is included in the request in order to render the partial properly.
Source:

endNode

DOM node for the terminal boundary of the placement. This will normally be the same as startNode since most placements appear as elements. This is primarily useful for widget sidebars which do not have intrinsic containers, but for which an HTML comment is output before to mark the ending position.
Source:

partial

The partial with which the container is associated.
Source:

removedNodes

DOM node(s) removed when the partial is refreshed. If the partial is containerInclusive, then the removedNodes will be the single Element that was the partial's former placement. If the partial is not containerInclusive, then the removedNodes will be a documentFragment containing the nodes removed.
Source:

startNode

DOM node for the initial boundary of the placement. This will normally be the same as endNode since most placements appear as elements. This is primarily useful for widget sidebars which do not have intrinsic containers, but for which an HTML comment is output before to mark the starting position.
Source:

Methods


initialize(args)

Constructor.
Parameters:
Name Type Description
args object
Properties
Name Type Argument Description
partial Partial
container jQuery | Element <optional>
startNode Node <optional>
endNode Node <optional>
context object <optional>
addedContent string <optional>
removedNodes jQuery | DocumentFragment <optional>
Since:
  • 4.5.0
Source: