Class Popover
Creates a popover element.
Brickrouge provides the Brickrouge.Popover Javascript class that can be used to give behaviour to the element, but because the element is not a widget this is not automatic and left up to you.
Use the Brickrouge\PopoverWidget to create elements with automatically attached behaviour.
- ICanBoogie\Object implements ICanBoogie\ToArrayRecursive uses ICanBoogie\ToArrayRecursiveTrait, ICanBoogie\PrototypeTrait
-
Brickrouge\Element
implements
ArrayAccess,
IteratorAggregate,
Brickrouge\HTMLStringInterface
-
Brickrouge\Popover
Direct known subclasses
Methods summary
public
|
|
protected
array
|
#
alter_class_names( array $class_names )
Adds the 'fit-content' class name if the |
protected
array
|
#
alter_dataset( array $dataset )
Adds the anchor specified using the |
protected
string|null
|
#
render_inner_html( )
The inner HTML is wrapped in a number of DIV elements, and the title is used a the popover title. |
protected
string
|
Methods inherited from Brickrouge\Element
__toString(),
add_assets(),
add_class(),
adopt(),
alter_attributes(),
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_class(),
render_dataset(),
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|array |
ACTIONS
|
'#actions' |
#
Popover actions. |
string |
ANCHOR
|
'#anchor' |
#
Anchor ID or CSS selector. |
boolean |
FIT_CONTENT
|
'#fit-content' |
#
Whether the popover element should fit the content. |
string |
PLACEMENT
|
'#placement' |
#
Placement of the popover relative to its anchor, one of |
string |
TITLE
|
'#title' |
#
Optional title of the popover. |
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