PHP Class WPDKUIControlSwitch
$item = array(
'type' => WPDKUIControlType::SWITCH_,
'label' => 'label',
'label_right' => 'label',
'id' => 'id',
'name' => 'name',
'appearance' => '', // 'raund'
'value' => 'off', // 'on', 'off', true, false, 0, 1
'attrs' => '',
'data' => '',
'class' => '',
'style' => '',
'title' => 'This title is a tooltip',
'prepend' => '',
'append' => '',
'popover' => instance of WPDKUIPopover
);
Mostra file
Open project: wpxtreme/wpdk
Public Methods
Method |
Description |
|
__construct ( array $item ) : WPDKUIControlSwitch |
Create an instance of WPDKUIControlSwipe class |
|
draw ( ) |
Drawing control |
|
init ( array $item ) : WPDKUIControlSwitch |
Useful static method to instance class. |
|
Method Details
__construct()
public method
Create an instance of WPDKUIControlSwipe class
public __construct ( array $item ) : WPDKUIControlSwitch |
$item |
array |
Key value pairs with control info |
return |
WPDKUIControlSwitch |
|
init()
public static method
Useful static method to instance class.
public static init ( array $item ) : WPDKUIControlSwitch |
$item |
array |
Key value pairs with control info |
return |
WPDKUIControlSwitch |
|