Class Widget
An HTML element.
The Element
class can create any kind of HTML element. It
supports class names, dataset, children. It handles values and default values.
It can decorate the HTML element with a label, a legend and a description.
This is the base class to all element types.
- ICanBoogie\Object implements ICanBoogie\ToArrayRecursive uses ICanBoogie\ToArrayRecursiveTrait, ICanBoogie\PrototypeTrait
- Brickrouge\Element implements ArrayAccess, IteratorAggregate, Brickrouge\HTMLStringInterface
- Brickrouge\Widget
Direct known subclasses
ICanBoogie\Modules\Thumbnailer\PopThumbnailVersion
,
Icybee\Modules\Images\AdjustThumbnail
,
Icybee\Modules\Nodes\PopNode
,
Icybee\Modules\Nodes\TitleSlugCombo
Indirect known subclasses
Brickrouge\Widget\AdjustThumbnail
,
Brickrouge\Widget\PopThumbnailVersion
,
Icybee\Modules\Editor\ImageEditorElement
,
Icybee\Modules\Images\PopImage
Namespace: Brickrouge
See: http://dev.w3.org/html5/spec/Overview.html#embedding-custom-non-visible-data-with-the-data-attributes
Located at vendor/icybee/icybee/lib/widget/widget.php
Methods summary
public
|
#
__construct( string $type, array $attributes = array() )
Interpolates a widget constructor name from the widget class. |
protected
string
|
|
protected
array
|
|
public
|
Methods inherited from Brickrouge\Element
__toString()
,
add_assets()
,
add_class()
,
adopt()
,
alter_attributes()
,
alter_class_names()
,
auto_element_id()
,
decorate()
,
decorate_with_description()
,
decorate_with_inline_help()
,
decorate_with_label()
,
decorate_with_legend()
,
getIterator()
,
get_attributes()
,
get_class()
,
get_dataset()
,
get_ordered_children()
,
handle_assets()
,
has_class()
,
lazy_get_id()
,
offsetExists()
,
offsetGet()
,
offsetSet()
,
offsetUnset()
,
remove_class()
,
render()
,
render_attributes()
,
render_child()
,
render_children()
,
render_dataset()
,
render_inner_html()
,
render_inner_html_for_checkbox_group()
,
render_inner_html_for_radio_group()
,
render_inner_html_for_select()
,
render_inner_html_for_textarea()
,
render_outer_html()
,
set_class()
,
set_dataset()
,
validate()
Methods inherited from ICanBoogie\Object
from()
,
resolve_facade_properties()
,
resolve_private_properties()
,
to_array()
,
to_json()
Methods inherited from ICanBoogie\ToArrayRecursive
Methods used from ICanBoogie\ToArrayRecursiveTrait
Methods used from ICanBoogie\PrototypeTrait
__call()
,
__get()
,
__set()
,
__sleep()
,
__wakeup()
,
get_prototype()
,
has_method()
,
has_property()
,
last_chance_get()
,
last_chance_set()
Magic methods summary
Constants summary
string |
CONSTRUCTOR
|
'#widget-constructor' |
Constants inherited from Brickrouge\Element
CHILDREN
,
DEFAULT_VALUE
,
DESCRIPTION
,
GROUP
,
GROUPS
,
INLINE_HELP
,
INNER_HTML
,
LABEL
,
LABEL_MISSING
,
LABEL_POSITION
,
LEGEND
,
OPTIONS
,
OPTIONS_DISABLED
,
REQUIRED
,
STATE
,
TYPE_CHECKBOX
,
TYPE_CHECKBOX_GROUP
,
TYPE_RADIO
,
TYPE_RADIO_GROUP
,
VALIDATOR
,
VALIDATOR_OPTIONS
,
WEIGHT
,
WIDGET_CONSTRUCTOR
Properties summary
Properties inherited from Brickrouge\Element
$auto_element_id
,
$children
,
$class_names
,
$inner_html
,
$tag_name
,
$tags
,
$type