Passing stepper content templates dynamically #3639
Answered
by
m0ksem
Bond-Addict
asked this question in
Q&A
-
Is it possible to pass templates dynamically to the stepper? I've created a custom implementation of the VaStepper and everything works except for the stepper content. I would think I could pass them to a slot. Click on Stepper => Look at "Custom Stepper" section. |
Beta Was this translation helpful? Give feedback.
Answered by
m0ksem
Jul 29, 2023
Replies: 1 comment
-
Hi. Sure, you can use Dynamic slots and proxy all incomming slots to <va-stepper>
<template
v-for="name in $slots"
:key="name"
v-slot:[name]="slotScope"
>
<slot
:name="name"
v-bind="{ ...slotScope, }"
/>
</template>
</va-stepper> You also can filter slots which not starts with |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Bond-Addict
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi. Sure, you can use Dynamic slots and proxy all incomming slots to
va-stepper
.You also can filter slots which not starts with
step
if you need.