| Methods |
public
|
addSection(
string $title,
Closure(VirtualPage, mixed, mixed, mixed, mixed, mixed, mixed, mixed, mixed, mixed, mixed): void $callback = null,
string $icon = 'dropdown',
): AccordionSection
Add an accordion section.
You can add static View within your section or pass
a callback for dynamic content.
Add an accordion section.
You can add static View within your section or pass
a callback for dynamic content.
Overriden by
|
#
|
public
|
activate(AccordionSection $section): void
Activate or open an accordion section.
Activate or open an accordion section.
Parameters
| $section |
the section to activate
|
|
#
|
public
|
jsOpen(AccordionSection $section, bool $when = false): JsChain
|
#
|
public
|
jsCloseOthers(bool $when = false): JsChain
|
#
|
public
|
jsClose(AccordionSection $section, bool $when = false): JsChain
|
#
|
public
|
jsToggle(AccordionSection $section, bool $when = false): JsChain
|
#
|
public
|
jsBehavior(string $behavior, array $args, bool $when = false): JsChain
Return an accordion JS behavior command
as in Fomantic-UI behavior for Accordion module.
Ex: toggle an accordion from…
Return an accordion JS behavior command
as in Fomantic-UI behavior for Accordion module.
Ex: toggle an accordion from it's index value.
$accordion->jsBehavior('toggle', 1).
Parameters
| $behavior |
the name of the behavior for the module
|
|
#
|
public
|
getSectionIdx(AccordionSection $section): int
Return the index of an accordion section in collection.
Return the index of an accordion section in collection.
Overriden by
|
#
|
protected
|
renderView(): void
View-specific rendering stuff. Feel free to replace this method with
your own. View::renderView contains some logic…
View-specific rendering stuff. Feel free to replace this method with
your own. View::renderView contains some logic that integrates with
Fomantic-UI.
Overrides
|
#
|