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' ),
);
Afficher le fichier
Open project: wpxtreme/wpdk
Méthodes publiques
Méthode |
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 méthode
Create an instance of WPDKUIControlButton class
public __construct ( array $item ) : WPDKUIControlButton |
$item |
array |
Key value pairs with control info |
Résultat |
WPDKUIControlButton |
|
init()
public static méthode
Return a singleton instance of WPDKUIControlButton class
public static init ( array $item ) : WPDKUIControlButton |
$item |
array |
Key value pairs with control info |
Résultat |
WPDKUIControlButton |
|