![]() |
WPDK
1.5.0
WordPress Development Kit
|
Public Member Functions | |
__construct ($item) | |
Construct. More... | |
draw () | |
Draw. More... | |
![]() | |
__construct ($item_control) | |
Construct. More... | |
display () | |
Display. More... | |
draw () | |
Draw. More... | |
html () | |
Get HTML. More... | |
Additional Inherited Members | |
![]() | |
const | DEFAULT_SIZE_ATTRIBUTE = 30 |
Attribute size. More... | |
const | APPEND_SELECT_LIST_REMOVE = 'append_select_list_remove' |
const | APPEND_SELECT_LIST_ADD = 'append_select_list_add' |
![]() | |
attrs () | |
Attributes. More... | |
data () | |
Data attributes. More... | |
classes () | |
CSS Class. More... | |
contentWithKey ($key) | |
Get content form array. More... | |
inputType ($type=WPDKHTMLTagInputType::TEXT, $class= '') | |
Common input control. More... | |
label () | |
Standard label for controls. More... | |
guide () | |
Guide. More... | |
![]() | |
$attrs = array() | |
Attributes. More... | |
$class = array() | |
CSS classes. More... | |
$data = array() | |
Data attributes. More... | |
$id = '' | |
Attribute ID. More... | |
$item = '' | |
WPDK UI Control array descriptor. More... | |
$name = '' | |
Name attribute. More... | |
$style = '' | |
CSS inline style. More... | |
Input type text control.
$item = array( 'type' => WPDKUIControlType::TEXT, 'label' => 'Left label' | array(), 'id' => 'id', 'name' => 'name', 'value' => 'Inner text', 'placeholder' => 'Placeholder', 'attrs' => '', 'data' => '', 'class' => '', 'style' => '', 'title' => 'This title is Twitter Bootstrap Tooltips', 'prepend' => '', 'append' => '', 'guide' => 'slug-of-guide' );
The new key guide
is used to open a Twitter Bootstrap Modal with an iframe on the Developer Center. You can display any Developer Center public guide, just by slug name page. The key guide
can be an array too:
'guide' => array( 'Say hello to guide', 'how-to-update-your-bootstrap-php' )
Or 'guide' => array( 'uri' => 'how-to-update-your-bootstrap-php', 'tooltip' => 'This is a custom tooltip for this guide', 'title' => 'This is the custom modal title', 'button' => 'Need help?' )
Definition at line 2108 of file wpdk-ui-controls.php.
__construct | ( | $item | ) |
Construct.
Create an instance of WPDKUIControlText class
array | $item | Key value pairs with control info |
Definition at line 2119 of file wpdk-ui-controls.php.
draw | ( | ) |