Class: TextWidgetControl

wp.textWidgets. TextWidgetControl


<abstract> new TextWidgetControl(options)

Text widget control.
Parameters:
Name Type Description
options Object Options.
Properties
Name Type Description
el jQuery Control field container element.
syncContainer jQuery Container element where fields are synced for the server.
Source:
Returns:
Type
void

Extends

  • Backbone.View

Members


events :Object

View events.
Type:
  • Object
Source:

Methods


dismissPointers(pointers)

Dismiss pointers for Custom HTML widget.
Parameters:
Name Type Description
pointers Array Pointer IDs to dismiss.
Since:
  • 4.8.1
Source:
Returns:
Type
void

initializeEditor()

Initialize editor.
Source:
Returns:
Type
void

openAvailableWidgetsPanel()

Open available widgets panel.
Since:
  • 4.8.1
Source:
Returns:
Type
void

updateFields()

Update input fields from the sync fields. This function is called at the widget-updated and widget-synced events. A field will only be updated if it is not currently focused, to avoid overwriting content that the user is entering.
Source:
Returns:
Type
void