The CarouselStepper component is an extension of the Stepper component, this component components shows all options in a carousel.
If you want to use the CarouselStepper component, import it from Lightning UI.
import { CarouselStepper } from '@lightningjs/ui'
To use the CarouselStepper component you create an instance with the type
CarouselStepper:
class MyApp extends Lightning.Application {
static _template() {
return {
MyCarouselStepper: {
type: CarouselStepper
},
}
}
}
You can view the Stepper component page to see more information about customizing.
You can always add / customize existing tags, to make this job a bit easier follow this template when altering the component:
this.tag('MyCarouselStepper').patch({
Focus: {},
Label: {},
ValueWrapper: {
Carousel: {}
}
});
With this setter you can change the value of the Label tag. Expected input is an string
or number
.
With this setter you can add options instead of a range of numbers. Expected input is an array
.
With this setter you can change the index of the carousel. Expected input is a number
/ index
.
With this setter you can set the focus color of the rounded rectangle where the value is displayed. Expected input is an argb
.
With this setter you can set the color of all the labels. Expected input is an argb
.
With this setter you can set the color of all value label when focused. Expected input is an argb
.
With this setter you can set the padding on the left side of the Stepper component. Expected input is a number
With this setter you can set a animation for when the Stepper component is focused. Expected input is a Lightning.Animation
The getter returns the current value of the label.
The getter returns the current options.
This getter returns the current value index of the current option selected.
This getter returns an argb
of the focusColor property.
This getter returns an argb
of the labelColor property.
This getter returns an argb
of the labelColorFocused property.
This getter returns a number
of the padding property.