WPDK  1.5.0
WordPress Development Kit
 All Data Structures Files Functions Variables Pages
WPDKUIControlText Class Reference
Inheritance diagram for WPDKUIControlText:
WPDKUIControl

Public Member Functions

 __construct ($item)
 Construct. More...
 
 draw ()
 Draw. More...
 
- Public Member Functions inherited from WPDKUIControl
 __construct ($item_control)
 Construct. More...
 
 display ()
 Display. More...
 
 draw ()
 Draw. More...
 
 html ()
 Get HTML. More...
 

Additional Inherited Members

- Data Fields inherited from WPDKUIControl
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'
 
- Protected Member Functions inherited from WPDKUIControl
 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...
 
- Protected Attributes inherited from WPDKUIControl
 $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...
 

Detailed Description

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'
);

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?' )

Author
=undo= info@.nosp@m.wpxt.nosp@m.re.me
Date
2012-11-28
Version
0.8.1

Definition at line 2108 of file wpdk-ui-controls.php.

Constructor & Destructor Documentation

__construct (   $item)

Construct.

Create an instance of WPDKUIControlText class

Since
1.0.0.b3
Parameters
array$itemKey value pairs with control info
Returns
WPDKUIControlText

Definition at line 2119 of file wpdk-ui-controls.php.

Member Function Documentation

draw ( )

Draw.

Drawing control

Definition at line 2129 of file wpdk-ui-controls.php.


The documentation for this class was generated from the following file: