PHP Class WPDKUIControlCheckbox
$item = array(
'type' => WPDKUIControlType::CHECKBOX,
'label' => 'Right label',
'id' => 'id',
'name' => 'name',
'beforelabel' => '',
'afterlabel' => ':',
'value' => 'Checkbox value',
'checked' => 'Checkbox value',
'attrs' => array(),
'data' => array(),
'class' => array(),
'style' => '',
'title' => 'This title is a tooltip',
'prepend' => '',
'append' => '',
);
ファイルを表示
Open project: wpxtreme/wpdk
Class Usage Examples
Public Methods
Method |
Description |
|
__construct ( array $item ) : WPDKUIControlCheckbox |
Create an instance of WPDKUIControlCheckbox class |
|
draw ( ) |
Drawing control |
|
init ( array $item ) : WPDKUIControlCheckbox |
Useful static method to instance class. |
|
Method Details
__construct()
public method
Create an instance of WPDKUIControlCheckbox class
public __construct ( array $item ) : WPDKUIControlCheckbox |
$item |
array |
Key value pairs with control info |
return |
WPDKUIControlCheckbox |
|
init()
public static method
Useful static method to instance class.
public static init ( array $item ) : WPDKUIControlCheckbox |
$item |
array |
Key value pairs with control info |
return |
WPDKUIControlCheckbox |
|