Class: LockedNotification

wp.customize~ LockedNotification


new LockedNotification( [code] [, params])

A notification that is displayed in a full-screen overlay with information about the locked changeset.
Parameters:
Name Type Argument Description
code string <optional>
Code.
params object <optional>
Params.
Since:
  • 4.9.0
Source:

Extends

Members


containerClasses :string

Additional class names to add to the notification container.
Type:
  • string
Since:
  • 4.9.0
Inherited From:
Source:

loading :boolean

Whether the notification should show a loading spinner.
Type:
  • boolean
Since:
  • 4.9.0
Inherited From:
Source:

lockUser :object

Lock user.
Type:
  • object
Source:

template :function

Template function for rendering the notification. This will be populated with template option or else it will be populated with template from the ID.
Type:
  • function
Since:
  • 4.9.0
Inherited From:
Source:

templateId :string

Template ID.
Type:
  • string
Overrides:
Source:

Methods


handleEscape(event)

Stop propagation on escape key presses, but also dismiss notification if it is dismissible.
Parameters:
Name Type Description
event jQuery.Event Event.
Since:
  • 4.9.0
Inherited From:
Source:
Returns:
Type
void

initialize(code, params)

Initialize notification.
Parameters:
Name Type Description
code string Notification code.
params object Notification parameters.
Properties
Name Type Argument Default Description
message string Message.
type string <optional>
error Type.
setting string <optional>
Related setting ID.
template function <optional>
Function for rendering template. If not provided, this will come from templateId.
templateId string <optional>
ID for template to render the notification.
containerClasses string <optional>
Additional class names to add to the notification container.
dismissible boolean <optional>
Whether the notification can be dismissed.
Since:
  • 4.9.0
Inherited From:
Source:

render()

Render notification.
Since:
  • 4.9.0
Overrides:
Source:
Returns:
Notification container.
Type
jQuery