Class toggle
Pretty little on/off type toggle switch
- uix\ui\uix
- uix\data\data
- uix\ui\control
- uix\ui\control\toggle
Methods summary
public
array
|
|
public
|
|
protected
|
|
public
array
|
|
public
string
|
|
public
string
|
Methods inherited from uix\ui\control
description()
,
get_value()
,
is_active()
,
label()
,
name()
,
register()
,
render()
,
set_config()
,
setup()
Methods inherited from uix\data\data
Methods inherited from uix\ui\uix
__call()
,
__construct()
,
actions()
,
base_color()
,
build_attributes()
,
enqueue_core()
,
id()
,
init()
,
process_child()
,
process_children()
,
render_children()
,
set_url()
Properties summary
public
string
|
$type
The type of object |
#
'toggle'
|
public
array
|
$icons
The on and off icons to use |
#
array( 'on' => 'dashicons-yes', 'off' => '' )
|
Properties inherited from uix\data\data
Properties inherited from uix\ui\uix
$assets
,
$attributes
,
$child
,
$parent
,
$scripts
,
$slug
,
$struct
,
$styles
,
$url