Skip to content

Latest commit

 

History

History
75 lines (48 loc) · 2.05 KB

Slider.md

File metadata and controls

75 lines (48 loc) · 2.05 KB

◄ Back to index

Slider icon Joomla\Content\Element\Slider

In web design terminology, the term Slider is used for a slide show added into a web page. Sliders can be used on all kind of websites however they’re most commonly used on business websites or professional portfolio websites. One clear advantage of using a slider is that website owners can place all their important content in a visually appealing and interactive slide show at the top of the page before their main content. This allows users to quickly see the highlights and take action.

Sliders can run slide shows automatically without user input by moving slides on pre-defined time interval. Sliders can also respond to user interaction like click or swipe to view next or previous slides. Additionally, sliders can also have buttons or thumbnails which users can click to view a particular slide in the slider.

From wpbeginner.com

Usage

$sliderElement = new Slider( [ Panel[] $elements [, array $params ] ] );

or

$sliderElement = Slider::from( Panel $data [, array $mapping [, array $params ] ] );

Properties

Property Type Description Required
elements Panel[] The child elements -

Elements

Get the child elements.

$elements = $sliderElement->getElements();

Parameters

Parameters are optional settings for the presentation. All elements can have 'id' and 'class' parameters; other depend on environment and/or renderer.

Parameter Type Description
id string The ID of the element
class string CSS class

Parameter List

Get an associative array with all parameters.

$params = $sliderElement->getParameters();

Single Parameter

Retrieve a single parameter. Default should be provided.

$id    = $sliderElement->getParameter( 'id' [, $default ] );
$class = $sliderElement->getParameter( 'class' [, $default ] );

Examples