Property | Type | Description | |
---|---|---|---|
$attrs | array | string | A string with list of attributes | |
$class | string | array | A string or an array with CSS classes | |
$data | string | array | A string or an array with list of data attributes | |
$id | string | A sanitize attribute id | |
$item | array | A key value pairs array with the WPDK ui control description | |
$name | string | The name attribute | |
$style | string | A string with inlibe CSS styles |
Method | Description | |
---|---|---|
__construct ( array $item_control ) | Create an instance of WPDKUIControl class | |
display ( ) | Display the control | |
draw ( ) | Drawing | |
html ( ) : string | Return the HTML markup for control |
Method | Description | |
---|---|---|
attrs ( ) : string | Return a string with complete list of generic attributes as title, id, etc. | |
classes ( ) : string | Return a string with complete list of CSS class | |
contentWithKey ( string $key ) : string | Return the content by specific key. If the content is an instance of class WPDKUIControl then get the HTML. | |
data ( ) : string | Return a string with complete list of data attributes as data-name = "value". For example: | |
guide ( ) : string | Return the HTML markup for the guide engine | |
inputType ( string | WPDKHTMLTagInputType $type = WPDKHTMLTagInputType::TEXT, string $class = '' ) | This is a utility method to display a common input type | |
label ( ) : null | WPDKHTMLTagLabel | Return an instance of WPDKHTMLTagLabel class or null if no label provided. |
Method | Description | |
---|---|---|
sizeForType ( string $type ) : integer | Return the specific attribute size for control type |
public __construct ( array $item_control ) | ||
$item_control | array | Control array |
protected contentWithKey ( string $key ) : string | ||
$key | string | String key in array |
return | string |
protected array $item | ||
return | array |