Skip to content

StepperSummary ​

StepperSummary is the right-column sidebar panel. During regular steps it shows per-step preview cards and a Next button. On the final step it renders the summary.final slot — by default a StepperFinalSummary card.

NOTE

This is an internal sub-component of ue-stepper-form. You do not use it directly.

Behaviour ​

  • When isLastStep is false, iterates over forms and renders either a custom summary-form-{n} slot or the default ue-form-summary-item for each step whose preview model is filled.
  • Dividers are injected between filled summary items automatically.
  • The Next button at the bottom emits next-form with activeStep - 1 (0-based index), triggering validation in the parent.
  • When isLastStep is true, the summary.final slot is rendered. The default implementation renders StepperFinalSummary and wires complete-form to its complete button.

Props ​

PropTypeRequiredDescription
isLastStepBooleanYestrue when activeStep > forms.length.
formsArrayYesThe forms array from the parent stepper.
activeStepNumberYesCurrently active 1-based step.
modelsArrayYesArray of per-step model objects.
schemasArrayYesArray of per-step schema arrays.
previewModelArrayYesArray of per-step preview data objects.
previewTitlesArrayYesResolved title string for each step's summary card.
isPreviewModelFilledFunctionYes(index: number) => boolean — determines whether a step has preview data to display.

Emits ​

EventPayloadDescription
next-formNumber0-based index of the current step. Triggers form validation and advance.
complete-form—Emitted when the final-step complete button is clicked.

Slots ​

summary.forms ​

Replaces the entire default per-step summary list (all steps at once):

html
<template #summary.forms>
  <!-- fully custom summary list -->
</template>

summary-form-{n} ​

Replaces the default summary card for step n (1-based). Receives a scoped object:

html
<template #summary-form-2="{ title, model, schema, previewModel, index, order, length }">
  <p>{{ title }}: {{ model.company }}</p>
</template>
BindingTypeDescription
indexNumberZero-based step index
orderNumberOne-based step number
titleStringResolved preview title
modelObjectForm model for this step
schemaArrayForm schema for this step
previewModelObjectPreview model for this step
isPreviewModelFilledFunction(index) => Boolean
lengthNumberTotal number of steps

summary.final ​

Replaces the entire right-column content on the final step. Receives:

html
<template #summary.final="{ model, schema, previewModel, onComplete }">
  <!-- custom final panel, call onComplete() to submit -->
</template>
BindingTypeDescription
modelArrayAll step models
schemaArrayAll step schemas
previewModelArrayAll preview models
onCompleteFunctionCall to trigger form submission