Class: Value

wp.customize. Value


new Value()

Observable values that support two-way binding.
Source:

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.
Source:

get()

Get the value.
Source:
Returns:
Type
mixed

initialize(initial, options)

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

set(to)

Set the value and trigger all bound callbacks.
Parameters:
Name Type Description
to object New value.
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.
Source: