new Carousel(elements, theme [, completeLabel])
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
elements |
olympe.df.SortedEnumerable.<!olympe.ui.std.DockableElement> | |||
theme |
olympe.ui.std.theme.Theme | |||
completeLabel |
olympe.df.OString | string |
<optional> |
Next |
Methods
-
getSelectedElementIndex()
-
Get the a flow providing the rank of the element being displayed.
Returns:
- Type
- olympe.df.PONumber
-
isFirstElementSelected()
-
Get a flow telling whether the element currently displayed is the first element in the list or not.
Returns:
- Type
- olympe.df.POBoolean
-
isLastElementSelected()
-
Get a flow telling whether the element currently displayed is the last element in the list or not.
Returns:
- Type
- olympe.df.POBoolean
-
setBulletWidth(width)
-
Set stepper bullet width
Parameters:
Name Type Description width
olympe.df.PONumber -
setLastItemCallback(callback)
-
Set a callback that will be called whenever the last item is reach and the next butotn is pressed
Parameters:
Name Type Description callback
function -
setStepperSpacing(spacing)
-
Set spacing between spacer and view port
Parameters:
Name Type Description spacing
olympe.df.PONumber -
showNextButton(show)
-
Display next button
Parameters:
Name Type Description show
olympe.df.OBoolean | boolean -
showNextElement()
-
Display (cyclically) the next element.
-
showPreviousElement()
-
Display (cyclically) the previous element.