UIX Documentation
  • Namespace
  • Class
  • Tree

Namespaces

  • None
  • uix
    • data
    • ui
      • control

Classes

  • autocomplete
  • button
  • checkbox
  • color
  • editor
  • email
  • file
  • hidden
  • number
  • post_relation
  • radio
  • select
  • separator
  • slider
  • template
  • text
  • textarea
  • toggle

Class toggle

Pretty little on/off type toggle switch

uix\ui\uix
Extended by uix\data\data
Extended by uix\ui\control
Extended by uix\ui\control\toggle
Namespace: uix\ui\control
Since: 1.0.0
Located at classes/uix/ui/control/toggle.php

Methods summary

public array
# classes( )

Gets the classes for the control input

Gets the classes for the control input

Returns

array

Since

1.0.0

Overrides

uix\ui\control::classes
public
# set_assets( )

Define core UIX styles - override to register core ( common styles for uix type )

Define core UIX styles - override to register core ( common styles for uix type )

Since

1.0.0

Overrides

uix\ui\control::set_assets
protected
# enqueue_active_assets( )

Enqueues specific tabs assets for the active pages

Enqueues specific tabs assets for the active pages

Since

1.0.0

Overrides

uix\ui\uix::enqueue_active_assets
public array
# set_attributes( )

Gets the attributes for the control.

Gets the attributes for the control.

Returns

array
Attributes for the input field

Since

1.0.0

Overrides

uix\ui\control::set_attributes
public string
# input( )

Returns the main input field for rendering

Returns the main input field for rendering

Returns

string

Since

1.0.0

See

uix\ui\uix

Overrides

uix\ui\control::input
public string
# sdescription( )

Returns the description for the control

Returns the description for the control

Returns

string
description string

Since

1.0.0

Methods inherited from uix\ui\control

description(), get_value(), is_active(), label(), name(), register(), render(), set_config(), setup()

Methods inherited from uix\data\data

get_data(), set_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

The type of object

Since

1.0.0
# 'toggle'
public array $icons

The on and off icons to use

The on and off icons to use

Since

1.0.0
# array( 'on' => 'dashicons-yes', 'off' => '' )

Properties inherited from uix\data\data

$data

Properties inherited from uix\ui\uix

$assets, $attributes, $child, $parent, $scripts, $slug, $struct, $styles, $url

UIX Documentation API documentation generated by ApiGen