[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/HTML/Helpers/ -> Bootstrap.php (summary)

Joomla! Content Management System

Copyright: (C) 2012 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 848 lines (33 kb)
Included or required:0 times
Referenced: 2 times
Includes or requires: 0 files

Defines 23 functions

  alert()
  button()
  carousel()
  collapse()
  dropdown()
  modal()
  offcanvas()
  popover()
  scrollspy()
  tab()
  tooltip()
  toast()
  framework()
  loadCss()
  startAccordion()
  endAccordion()
  addSlide()
  endSlide()
  renderModal()
  startTabSet()
  endTabSet()
  addTab()
  endTab()

Functions
Functions that are not part of a class:

alert($selector = '')   X-Ref
Add javascript support for Bootstrap alerts

param: string  $selector  Common class for the alerts
return: void

button($selector = '')   X-Ref
Add javascript support for Bootstrap buttons

param: string  $selector  Common class for the buttons
return: void

carousel($selector = '', $params = [])   X-Ref
Add javascript support for Bootstrap carousels

param: string  $selector  Common class for the carousels.
param: array   $params    An array of options for the carousel.
return: void

collapse($selector = '', $params = [])   X-Ref
Add javascript support for Bootstrap collapse

param: string    $selector  Common class for the collapse
param: string[]  $params    Additional parameters - see below
return: void

dropdown($selector = '', $params = [])   X-Ref
Add javascript support for Bootstrap dropdowns

param: string  $selector  Common class for the dropdowns
param: array   $params    The options for the dropdowns
return: void

modal($selector = '', $options = [])   X-Ref
Add javascript support for Bootstrap modal

param: string  $selector  The ID selector for the modal.
param: array   $options   An array of options for the modal.
return: void

offcanvas($selector = '', $options = [])   X-Ref
Add javascript support for Bootstrap offcanvas

param: string  $selector  The ID selector for the offcanvas.
param: array   $options   An array of options for the offcanvas.
return: void

popover($selector = '', $options = [])   X-Ref
Add javascript support for Bootstrap popovers

Use element's Title as popover content

param: string  $selector  Selector for the popover
param: array   $options   The options for the popover
return: void

scrollspy($selector = '', $options = [])   X-Ref
Add javascript support for Bootstrap Scrollspy

param: string  $selector  The ID selector for the ScrollSpy element.
param: array   $options   An array of options for the ScrollSpy.
return: void

tab($selector = '', $options = [])   X-Ref
Add javascript support for Bootstrap tab

param: string  $selector  Common class for the tabs
param: array   $options   Options for the tabs
return: void

tooltip($selector = '', $options = [])   X-Ref
Add javascript support for Bootstrap tooltips

Add a title attribute to any element in the form
title="title::text"

param: string  $selector  The ID selector for the tooltip.
param: array   $options   An array of options for the tooltip.
return: void

toast($selector = '', $options = [])   X-Ref
Add javascript support for Bootstrap toasts

param: string  $selector  Common class for the toasts
param: array   $options   Options for the toasts
return: void

framework($debug = null)   X-Ref
Method to load the ALL the Bootstrap Components

If debugging mode is on an uncompressed version of Bootstrap is included for easier debugging.

param: mixed  $debug  Is debugging mode on? [optional]
return: void

loadCss($includeMainCss = true, $direction = 'ltr', $attribs = [])   X-Ref
No description

startAccordion($selector = 'myAccordian', $options = [])   X-Ref
Add javascript support for Bootstrap accordions and insert the accordion

param: string  $selector  The ID selector for the tooltip. Expects a valid ID without the #!
param: array   $options   An array of options for the tooltip.
return: string  HTML for the accordion

endAccordion()   X-Ref
Close the current accordion

return: string  HTML to close the accordion

addSlide($selector, $text, $id, $class = '')   X-Ref
Begins the display of a new accordion slide.

param: string  $selector  Identifier of the accordion group.
param: string  $text      Text to display.
param: string  $id        Identifier of the slide.
param: string  $class     Class of the accordion group.
return: string  HTML to add the slide

endSlide()   X-Ref
Close the current slide

return: string  HTML to close the slide

renderModal($selector = 'modal', $options = [], $body = '')   X-Ref
Method to render a Bootstrap modal

param: string  $selector  The ID selector for the modal. Expects a valid ID without the #!
param: array   $options   An array of options for the modal.
param: string  $body      Markup for the modal body. Appended after the `<iframe>` if the URL option is set
return: string  HTML markup for a modal

startTabSet($selector = 'myTab', $params = [])   X-Ref
Creates a tab pane

param: string  $selector  The pane identifier. Expects a valid ID without the #!
param: array   $params    The parameters for the pane
return: string

endTabSet()   X-Ref
Close the current tab pane

return: string  HTML to close the pane

addTab($selector, $id, $title)   X-Ref
Begins the display of a new tab content panel.

param: string  $selector  Identifier of the panel. Expects a valid ID without the #!
param: string  $id        The ID of the div element. Expects a valid ID without the #!
param: string  $title     The title text for the new UL tab
return: string  HTML to start a new panel

endTab()   X-Ref
Close the current tab content panel

return: string  HTML to close the pane



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer