The ProgressStepper component is an extension of the Stepper component, this component has a progress bar and a value label. This component only works with a scope of numbers.
If you want to use the ProgressStepper component, import it from Lightning UI.
import { ProgressStepper } from '@lightningjs/ui'
To use the ProgressStepper component you create an instance with the type
ProgressStepper:
class MyApp extends Lightning.Application {
static _template() {
return {
MyProgressStepper: {
type: ProgressStepper
},
}
}
}
This code will display the Stepper 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('MyProgressStepper').patch({
Focus: {},
Label: {},
ValueWrapper: {
ProgressBar: {}
Value: {}
}
});
With this setter you can change the value of the Label tag. Expected input is an string
or number
.
With this setter you can change the value of the Value tag. Expected input is a number
or index
.
With this setter you can set the maximum value of the number scope. Expected input is a number
.
With this setter you can set the minimum value of the number scope. 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 when focused. Expected input is an argb
.
With this setter you can set the padding on the left and right 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.
This getter returns the current value of the value label.
This getter returns the current maximum value of the number scope.
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.