PHP Class WPDKUIControlButton
$item = array(
'type' => WPDKUIControlType::BUTTON,
'id' => 'id',
'name' => 'name',
'value' => 'Button Text',
'attrs' => '',
'data' => '',
'class' => '',
'style' => '',
'title' => 'This title is a tooltip',
'prepend' => '',
'append' => '',
'toggle' => array( 'true', 'alternate_label' ),
);
Mostrar archivo
Open project: wpxtreme/wpdk
Public Methods
Method |
Description |
|
__construct ( array $item ) : WPDKUIControlButton |
Create an instance of WPDKUIControlButton class |
|
draw ( ) |
Drawing control |
|
init ( array $item ) : WPDKUIControlButton |
Return a singleton instance of WPDKUIControlButton class |
|
Method Details
__construct()
public method
Create an instance of WPDKUIControlButton class
public __construct ( array $item ) : WPDKUIControlButton |
$item |
array |
Key value pairs with control info |
return |
WPDKUIControlButton |
|
init()
public static method
Return a singleton instance of WPDKUIControlButton class
public static init ( array $item ) : WPDKUIControlButton |
$item |
array |
Key value pairs with control info |
return |
WPDKUIControlButton |
|