Skip to main content

Stepper

shadow

Komponent Stepper zobrazuje pokrok prostredníctvom očíslovaných krokov. Poskytuje workflow podobný sprievodcovi. Steppery zobrazujú pokrok prostredníctvom sekvencie očíslovaných krokov.

Základné použitie

Disabled (Deaktivované) kroky

Vlastné tlačidlá

Atribúty a Vlastnosti

active

DescriptionThe step color you want to use from your application's color palette. The default options are: "primary", "secondary", "tertiary", "success", "warning", "danger", "light", "medium", and "dark". See theming for more information on colors.
Attributeactive
Type"danger." | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string & Record<never, never> | undefined
Defaultprimary

done

DescriptionThe color of the step after finishing that you want to use from the color palette of your application. The default options are "primary", "secondary", "tertiary", "success", "warning", "danger", "light", "medium", and "dark". See theming for more information on colors.
Attributedone
Type"danger." | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string & Record<never, never> | undefined
Defaultsuccess

Eventy

NameDescription
stepper:nextIt is transmitted when moving to the next step.
stepper:prevIt is transmitted when returning to the previous step.
stepper:finishIt is transmitted after the last step is completed.

Metódy

DescriptionNavigates to a different step in the process according to the specified direction.
Signaturenavigate(direction: number): void

goToStep

DescriptionGoes to a specific step and updates the stepper UI.
SignaturegoToStep(stepIndex: number): void

setStepDefault

DescriptionResets the step to the default state, removing active and completed attributes.
SignaturesetStepDefault(nav: HTMLElement, badge?: HTMLElement | null, stepIndex?: number): void

setStepActive

DescriptionSets the step as active and updates the badge.
SignaturesetStepActive(nav: HTMLElement, badge?: HTMLElement | null, stepIndex?: number | null): void

setContentActive

DescriptionDisplays the contents of the selected step and hides the others.
SignaturesetContentActive(stepIndex: number): void

setStepDone

DescriptionMarks the step as complete and updates the badge with the icon.
SignaturesetStepDone(nav: HTMLElement, badge?: HTMLElement | null): void

setStepLocked

DescriptionMarks the step as locked and updates the badge with the lock icon.
SignaturesetStepLocked(nav: HTMLElement, badge?: HTMLElement | null): void

CSS Shadow Parts

NameDescription
nativeNatívna časť steppera.
headerHlavička steppera.
contentObsah steppera.

CSS Custom Vlastnosti

NameDescription
--wje-stepper-justifyAlignment of the step header.
--wje-stepper-growFlex-grow for each step in the header.
--wje-stepper-marginIndentation for the arrow icon between steps.

Sloty

NameDescription
``Default slot for stepper steps.
prevSlot for the custom button of the previous step.
nextSlot pre vlastné tlačidlo ďalšieho kroku.
finishSlot pre vlastné tlačidlo dokončenia.