The ArrowStepper component is an extension of the Stepper component, this component has an arrow on both sides of the value.
If you want to use the ArrowStepper component, import it from Lightning UI.
import { ArrowStepper } from '@lightningjs/ui'To use the ArrowStepper component you create an instance with the type ArrowStepper:
class MyApp extends Lightning.Application {
static _template() {
return {
MyArrowStepper: {
type: ArrowStepper
},
}
}
}This code will display the RangeInput with a label on the left and a value on the right in a row. With the value being displayed with the number 50.
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('MyArrowStepper').patch({
Focus: {},
Label: {},
ValueWrapper: {
ArrowLeft: {},
Value: {}
ArrowRight: {}
}
});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 value of the Value tag. The value setter is also used as an index value when there are options available. Expected input is a number or index.
With this setter you can set the maximum value of the number range used when no options are available. Expected input is a number.
With this setter you can set the minimum value of the number range used when no options are available. Expected input is a number.
With this setter you can set the focus color of the background. 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 the value label and arrows when focused. Expected input is an argb.
With this setter you can set the padding on the left and right side of the RangeInput component. Expected input is a number
With this setter you can set a animation for when the RangeInput 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 of the value label, or it returns the index of the current selected option.
This getter returns the current maximum value of the number scope. When options are used this value returns the maximum index of the options array.
This getter returns the current minimum value of the number scope.
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.