Skip to main content

BwViewManager | bw-view-manager

Overview​

The view manager is used to manage multiple bw-views. It allows you to easily create advanced wizards or nested form flows by managing the animations, wizard steps, and breadcrumbs.

For examples on how to setup a view manager, read the wizard tutorial.

Properties​

PropertyAttributeDescriptionTypeDefault
crumbs--The initial state of the breadcrumbsstring[][]
steps--The initial state of the wizardWizardStep[][]
valuevalueThe label of the initial view that should be displayedstringundefined

Events​

EventDescriptionType
viewChangeEmits when the view changed view navigation method or a data-view-link attributeCustomEvent<{ from: string; to: string; }>
viewMountEmits when a view is manually mounted via the value propertyCustomEvent<string>

Methods​

Triggers a view change animation. Prefer navigating between views using [data-view-*] attributes over calling this method directly.

Parameters​

NameTypeDescription
valuestringThe label of the next view that should be displayed
direction"backwards" | "forwards"The type of animation that should show
isCrumbbooleanwhether or not the view should cause an update to the breadcrumbs. If direction is forwards, it will add the label of the view to the crumbs, if backwards it will pop labels off the crumbs until it gets to the next view
wizardAction"next" | "reset" | "previous" | "skip"A method to trigger on the views' wizard

Returns​

Type: Promise<void>

Slots​

SlotDescription
The default slot

Dependencies​

Depends on​

Graph​


© 2026 United Systems & Software - All Rights Reserved.