Saltar al contenido principal
Version: 4.4.0

Wizard and Wizard panel

Introducción

A wizard or assistant is a very useful screen component to guide the user through an ordered group of screens called steps:

Wizard

Esqueleto de XML

The wizard structure is very similar to tab and tabcontainer structure:

<wizard id="[wizard-identifier]" initial-load="[initial-load]" target-action="[target-action]" label="[wizard-step-label]">
<wizard-panel id="[panel-identifier]">
...
</wizard-panel>
<wizard-panel id="[panel-identifier]">
...
</wizard-panel>
...
</wizard>

Wizard structure

<wizard id="[wizard-identifier]" initial-load="[initial-load]" target-action="[target-action]" label="[wizard-step-label]">
...
</wizard>

Wizard attributes

AtributoUsoTipoDescripciónValores
idObligatorioStringWizard identifier. Con fines de referencia
labelOpcionalStringWizard step text (without the number)Note: You can use i18n files (locales)
styleOpcionalStringWizard CSS classes
carga-inicialOpcionalStringServer action call to load the wizard steps (launched at window generation)enum (for enumerated), query (for query call)
target-actionOpcionalStringDestino para llamar al servidor
sizeOpcionalStringWizard sizesm (default), md or lg.
ayudaOpcionalStringHelp text for the criterionNote: You can use i18n files (locales)
imagen de ayudaOpcionalStringHelp image for the criterionEsta debe ser una ruta de imagen

Wizard panel structure

<wizard-panel id="[panel-identifier]">
...
</wizard-panel>

Wizard panel attributes

AtributoUsoTipoDescripciónValores
idObligatorioStringPanel identifier. Must be the same as target values
styleOpcionalStringPanel CSS classes
ayudaOpcionalStringHelp text for the criterionNote: You can use i18n files (locales)
imagen de ayudaOpcionalStringHelp image for the criterionEsta debe ser una ruta de imagen

Ejemplos

  • Wizard with 4 steps and validation in each step
<wizard id="wizardTest" initial-load="enum" target-action="WizTst" label="SCREEN_TEXT_STEP">
<wizard-panel id="WizardStep1">
<tag type="div" style="fullHeight" expandible="vertical">
<tag type="div" style="panel-body expand">
...
</tag>
<tag type="div" style="panel-footer">
<tag type="div" style="pull-right">
<button label="BUTTON_NEXT" icon="chevron-circle-right" id="FwStep2" style="btn-primary">
<button-action type="validate" target="WizardStep1"/>
<button-action type="next-step" target="wizardTest"/>
</button>
</tag>
</tag>
</tag>
</wizard-panel>
<wizard-panel id="WizardStep2">
<tag type="div" style="fullHeight" expandible="vertical">
<tag type="div" style="panel-body expand">
...
</tag>
<tag type="div" style="panel-footer">
<tag type="div" style="pull-right">
<button label="BUTTON_PREVIOUS" icon="chevron-circle-left" id="BkStep1">
<button-action type="prev-step" target="wizardTest"/>
</button>
<button label="BUTTON_NEXT" icon="chevron-circle-right" id="FwStep3" style="btn-primary">
<button-action type="validate" target="WizardStep2"/>
<button-action type="next-step" target="wizardTest"/>
</button>
</tag>
</tag>
</tag>
</wizard-panel>
<wizard-panel id="WizardStep3">
<tag type="div" style="fullHeight" expandible="vertical">
<tag type="div" style="panel-body expand">
...
</tag>
<tag type="div" style="panel-footer">
<tag type="div" style="pull-right">
<button label="BUTTON_PREVIOUS" icon="chevron-circle-left" id="BkStep2">
<button-action type="prev-step" target="wizardTest"/>
</button>
<button label="BUTTON_NEXT" icon="chevron-circle-right" id="FwStep4" style="btn-primary">
<button-action type="validate" target="WizardStep3"/>
<button-action type="next-step" target="wizardTest"/>
</button>
</tag>
</tag>
</tag>
</wizard-panel>
<wizard-panel id="WizardStep4">
<tag type="div" style="fullHeight" expandible="vertical">
<tag type="div" style="panel-body expand">
...
</tag>
<tag type="div" style="panel-footer">
<tag type="div" style="pull-right">
<button label="BUTTON_PREVIOUS" icon="chevron-circle-left" id="BkStep3">
<button-action type="prev-step" target="wizardTest"/>
</button>
<button label="BUTTON_FINISH" icon="check" id="Finish" style="btn-primary">
<button-action type="validate" target="WizardStep4"/>
</button>
</tag>
</tag>
</tag>
</wizard-panel>
</wizard>

Which will generate the following wizard:

Wizard