Adaptive Form Wizard component written in HTL.
- Allows addition of wizard items of varying resource type.
- Ability to force a single panel to be displayed.
- First Item is expanded by default.
- Allows replacing this component with other component (as mentioned below).
The Wizard component uses the com.adobe.cq.forms.core.components.models.form.Wizard
Sling model as its Use-object.
The following properties are written to JCR for this Wizard component and are expected to be available as Resource
properties:
./title
- defines the title shown on the wizard./name
- defines the component name.
The component provides a core.forms.components.wizard.v1.runtime
client library category that contains a recommended base
CSS styling and JavaScript component. It should be added to a relevant site client library using the embed
property.
It also provides a core.wcm.components.wizard.v1.editor.hook
editor hook library that includes JavaScript
handling for registering wizard in panelContainer registry. It is required for navigation among different components in wizard in the authoring page.
It is already included by its edit and policy dialogs.
BLOCK cmp-adaptiveform-wizard
ELEMENT cmp-adaptiveform-wizard__label
ELEMENT cmp-adaptiveform-wizard__label-container
ELEMENT cmp-adaptiveform-wizard__tab
ELEMENT cmp-adaptiveform-wizard__wizardpanel
ELEMENT cmp-adaptiveform-wizard__previousNav
ELEMENT cmp-adaptiveform-wizard__nextNav
By placing the class names cmp-adaptiveform-wizard__label
and cmp-adaptiveform-wizard__questionmark
within the cmp-adaptiveform-wizard__label-container
class, you create a logical grouping of the label and question mark elements. This approach simplifies the process of maintaining a consistent styling for both elements.
Apply a data-cmp-is="adaptiveFormWizard"
attribute to the wrapper block to enable initialization of the JavaScript component.
The following properties and child nodes are required in the proxy component to enable full editing functionality for the Wizard:
./cq:isContainer
- set to{Boolean}true
, marks the Wizard as a container component./cq:editConfig
-afterchilddelete
,afterchildinsert
andafterchildmove
listeners should be provided via the edit configuration of the proxy._cq_editConfig.xml
contains the recommended actions and can be copied to the proxy component.
We support replace feature that allows replacing accordion component to any of the below components:
- Accordion
- Horizontal tabs
- Panel
- Vendor: Adobe
- Version: v1
- Compatibility: Cloud
- Status: production-ready