|
static | alert ($selector='') |
|
static | button ($selector='') |
|
static | carousel ($selector='', $params=[]) |
|
static | collapse ($selector='', $params=[]) |
|
static | dropdown ($selector='', $params=[]) |
|
static | modal ($selector='', $options=[]) |
|
static | offcanvas ($selector='', $options=[]) |
|
static | popover ($selector='', $options=[]) |
|
static | scrollspy ($selector='', $options=[]) |
|
static | tab ($selector='', $options=[]) |
|
static | tooltip ($selector='', $options=[]) |
|
static | toast ($selector='', $options=[]) |
|
static | framework ($debug=null) |
|
static | loadCss ($includeMainCss=true, $direction='ltr', $attribs=[]) |
|
static | startAccordion ($selector='myAccordian', $options=[]) |
|
static | endAccordion () |
|
static | addSlide ($selector, $text, $id, $class='') |
|
static | endSlide () |
|
static | renderModal ($selector='modal', $options=[], $body='') |
|
static | startTabSet ($selector='myTab', $params=[]) |
|
static | endTabSet () |
|
static | addTab ($selector, $id, $title) |
|
static | endTab () |
|
Utility class for Bootstrap elements.
- Depuis
- 3.0
◆ addSlide()
static addSlide |
( |
|
$selector, |
|
|
|
$text, |
|
|
|
$id, |
|
|
|
$class = '' |
|
) |
| |
|
static |
Begins the display of a new accordion slide.
- Paramètres
-
string | $selector | Identifier of the accordion group. |
string | $text | Text to display. |
string | $id | Identifier of the slide. |
string | $class | Class of the accordion group. |
- Renvoie
- string HTML to add the slide
- Depuis
- 3.0
Références $class, $id, $selector, $text, et true.
◆ addTab()
static addTab |
( |
|
$selector, |
|
|
|
$id, |
|
|
|
$title |
|
) |
| |
|
static |
Begins the display of a new tab content panel.
- Paramètres
-
string | $selector | Identifier of the panel. Expects a valid ID without the #! |
string | $id | The ID of the div element. Expects a valid ID without the #! |
string | $title | The title text for the new UL tab |
- Renvoie
- string HTML to start a new panel
- Depuis
- 3.1
Références $active, $id, $selector, $title, et null.
◆ alert()
static alert |
( |
|
$selector = '' | ) |
|
|
static |
◆ button()
static button |
( |
|
$selector = '' | ) |
|
|
static |
◆ carousel()
static carousel |
( |
|
$selector = '' , |
|
|
|
$params = [] |
|
) |
| |
|
static |
◆ collapse()
static collapse |
( |
|
$selector = '' , |
|
|
|
$params = [] |
|
) |
| |
|
static |
◆ dropdown()
static dropdown |
( |
|
$selector = '' , |
|
|
|
$params = [] |
|
) |
| |
|
static |
Add javascript support for Bootstrap dropdowns
- Paramètres
-
string | $selector | Common class for the dropdowns |
array | $params | The options for the dropdowns |
- Renvoie
- void
- Depuis
- 4.0.0
Options for the collapse can be:
- flip boolean true Allow Dropdown to flip in case of an overlapping on the reference element
- boundary string scrollParent Overflow constraint boundary of the dropdown menu
- reference string toggle Reference element of the dropdown menu. Accepts 'toggle' or 'parent'
- display string dynamic By default, we use Popper for dynamic positioning. Disable this with static
Références $params, $selector, Factory\getApplication(), et Factory\getDocument().
◆ endAccordion()
Close the current accordion
- Renvoie
- string HTML to close the accordion
- Depuis
- 3.0
◆ endSlide()
Close the current slide
- Renvoie
- string HTML to close the slide
- Depuis
- 3.0
◆ endTab()
◆ endTabSet()
◆ framework()
static framework |
( |
|
$debug = null | ) |
|
|
static |
◆ loadCss()
static loadCss |
( |
|
$includeMainCss = true , |
|
|
|
$direction = 'ltr' , |
|
|
|
$attribs = [] |
|
) |
| |
|
static |
Loads CSS files needed by Bootstrap
- Paramètres
-
boolean | $includeMainCss | If true, main bootstrap.css files are loaded |
string | $direction | rtl or ltr direction. If empty, ltr is assumed |
array | $attribs | Optional array of attributes to be passed to HTMLHelper::_('stylesheet') |
- Renvoie
- void
- Depuis
- 3.0
Références Factory\getDocument().
◆ modal()
static modal |
( |
|
$selector = '' , |
|
|
|
$options = [] |
|
) |
| |
|
static |
Add javascript support for Bootstrap modal
- Paramètres
-
string | $selector | The ID selector for the modal. |
array | $options | An array of options for the modal. |
- Renvoie
- void
- Depuis
- 4.0.0
Options for the modal can be:
- backdrop string| true Includes a modal-backdrop element. Alternatively, specify static boolean for a backdrop which doesn't close the modal on click.
- keyboard boolean true Closes the modal when escape key is pressed
- focus boolean true Closes the modal when escape key is pressed
Références $options, $selector, Factory\getApplication(), et Factory\getDocument().
◆ offcanvas()
static offcanvas |
( |
|
$selector = '' , |
|
|
|
$options = [] |
|
) |
| |
|
static |
Add javascript support for Bootstrap offcanvas
- Paramètres
-
string | $selector | The ID selector for the offcanvas. |
array | $options | An array of options for the offcanvas. |
- Renvoie
- void
- Depuis
- 4.0.0
Options for the offcanvas can be:
- backdrop boolean true Apply a backdrop on body while offcanvas is open
- keyboard boolean true Closes the offcanvas when escape key is pressed
- scroll boolean false Allow body scrolling while offcanvas is open
Références $options, $selector, Factory\getApplication(), et Factory\getDocument().
◆ popover()
static popover |
( |
|
$selector = '' , |
|
|
|
$options = [] |
|
) |
| |
|
static |
Add javascript support for Bootstrap popovers
Use element's Title as popover content
- Paramètres
-
string | $selector | Selector for the popover |
array | $options | The options for the popover |
- Renvoie
- void
- Depuis
- 3.0
- Options for the popover can be:
- animation boolean true Apply a CSS fade transition to the popover
- container string| false Appends the popover to a specific element. Eg.: 'body' boolean
- content string null Default content value if data-bs-content attribute isn't present
- delay number 0 Delay showing and hiding the popover (ms) does not apply to manual trigger type
- html boolean true Insert HTML into the popover. If false, innerText property will be used to insert content into the DOM.
- placement string right How to position the popover - auto | top | bottom | left | right. When auto is specified, it will dynamically reorient the popover
- selector string false If a selector is provided, popover objects will be delegated to the specified targets.
- template string null Base HTML to use when creating the popover.
- title string null Default title value if
title
tag isn't present
- trigger string click How popover is triggered - click | hover | focus | manual
- offset integer 0 Offset of the popover relative to its target.
Références $options, $selector, Factory\getApplication(), Factory\getDocument(), et null.
◆ renderModal()
static renderModal |
( |
|
$selector = 'modal' , |
|
|
|
$options = [] , |
|
|
|
$body = '' |
|
) |
| |
|
static |
Method to render a Bootstrap modal
- Paramètres
-
string | $selector | The ID selector for the modal. Expects a valid ID without the #! |
array | $options | An array of options for the modal. |
string | $body | Markup for the modal body. Appended after the <iframe> if the URL option is set |
- Renvoie
- string HTML markup for a modal
- Depuis
- 3.0
Options for the modal can be:
- backdrop string| true Includes a modal-backdrop element. Alternatively, specify static boolean for a backdrop which doesn't close the modal on click.
- keyboard boolean true Closes the modal when escape key is pressed
- focus boolean true Closes the modal when escape key is pressed
- title string null The modal title
- closeButton boolean true Display modal close button (default = true)
- footer string null Optional markup for the modal footer
- url string null URL of a resource to be inserted as an
<iframe>
inside the modal body
- height string null Height of the
<iframe>
containing the remote resource
- width string null Width of the
<iframe>
containing the remote resource
Références $options, $selector, HTMLHelper\_(), et LayoutHelper\render().
◆ scrollspy()
static scrollspy |
( |
|
$selector = '' , |
|
|
|
$options = [] |
|
) |
| |
|
static |
Add javascript support for Bootstrap Scrollspy
- Paramètres
-
string | $selector | The ID selector for the ScrollSpy element. |
array | $options | An array of options for the ScrollSpy. |
- Renvoie
- void
- Depuis
- 3.0
Options for the Scrollspy can be:
- offset number Pixels to offset from top when calculating position of scroll.
- method string Finds which section the spied element is in.
- target string Specifies element to apply Scrollspy plugin.
Références $options, $selector, Factory\getApplication(), Factory\getDocument(), et null.
◆ startAccordion()
static startAccordion |
( |
|
$selector = 'myAccordian' , |
|
|
|
$options = [] |
|
) |
| |
|
static |
Add javascript support for Bootstrap accordions and insert the accordion
- Paramètres
-
string | $selector | The ID selector for the tooltip. Expects a valid ID without the #! |
array | $options | An array of options for the tooltip. |
- Renvoie
- string HTML for the accordion
- Depuis
- 3.0
Options for the tooltip can be:
- parent selector If selector then all collapsible elements under the specified parent will be closed when this collapsible item is shown. (similar to traditional accordion behavior)
- toggle boolean Toggles the collapsible element on invocation
- active string Sets the active slide during load
Références $options, $selector, Factory\getApplication(), et Factory\getDocument().
◆ startTabSet()
static startTabSet |
( |
|
$selector = 'myTab' , |
|
|
|
$params = [] |
|
) |
| |
|
static |
◆ tab()
static tab |
( |
|
$selector = '' , |
|
|
|
$options = [] |
|
) |
| |
|
static |
◆ toast()
static toast |
( |
|
$selector = '' , |
|
|
|
$options = [] |
|
) |
| |
|
static |
◆ tooltip()
static tooltip |
( |
|
$selector = '' , |
|
|
|
$options = [] |
|
) |
| |
|
static |
Add javascript support for Bootstrap tooltips
Add a title attribute to any element in the form title="title::text"
- Paramètres
-
string | $selector | The ID selector for the tooltip. |
array | $options | An array of options for the tooltip. |
- Renvoie
- void
- Depuis
- 3.0
Options for the tooltip can be:
- animation boolean apply a css fade transition to the popover
- container string|boolean Appends the popover to a specific element: { container: 'body' }
- delay number|object delay showing and hiding the popover (ms) - does not apply to manual trigger type If a number is supplied, delay is applied to both hide/show Object structure is: delay: { show: 500, hide: 100 }
- html boolean Insert HTML into the popover. If false, jQuery's text method will be used to insert content into the dom.
- placement string|function how to position the popover - top | bottom | left | right
- selector string If a selector is provided, popover objects will be delegated to the specified targets.
- template string Base HTML to use when creating the popover.
- title string|function default title value if
title
tag isn't present
- trigger string how popover is triggered - hover | focus | manual
- constraints array An array of constraints - passed through to Popper.
- offset string Offset of the popover relative to its target.
Références $options, $selector, Factory\getApplication(), Factory\getDocument(), et null.
◆ $loaded
La documentation de cette classe a été générée à partir du fichier suivant :