Class: Element

wp.customize. Element


new Element()

An observable value that syncs with an element. Handles inputs, selects, and textareas by default.
Source:

Extends

Methods


bind(A)

Bind a function to be invoked whenever the value changes.
Parameters:
Name Type Argument Description
A function <repeatable>
function, or multiple functions, to add to the callback stack.
Inherited From:
Source:

get()

Get the value.
Inherited From:
Source:
Returns:
Type
mixed

initialize(initial, options)

Parameters:
Name Type Description
initial mixed The initial value.
options object
Inherited From:
Source:

set(to)

Set the value and trigger all bound callbacks.
Parameters:
Name Type Description
to object New value.
Inherited From:
Source:

unbind(A)

Unbind a previously bound function.
Parameters:
Name Type Argument Description
A function <repeatable>
function, or multiple functions, to remove from the callback stack.
Inherited From:
Source: