Represents the Essential JS 2 VueJS Stepper Component.
<ejs-stepper :steps='stepItems'></ejs-stepper>
number
Defines the current step index of the Stepper.
<template>
<ejs-stepper id="stepper" :steps="steps" activeStep="2"></ejs-stepper>
</template>
<script>
import Vue from "vue";
import { StepperPlugin } from "@syncfusion/ej2-vue-navigations";
Vue.use(StepperPlugin);
export default Vue.extend({
data: function() {
return { steps: [{}, {}, {}, {}, {}] };
}
});
</script>
Defaults to 0
Defines the step progress animation of the Stepper.
<template>
<ejs-stepper id="stepper" :steps="steps" :animation="animation"></ejs-stepper>
</template>
<script>
import Vue from "vue";
import { StepperPlugin } from "@syncfusion/ej2-vue-navigations";
Vue.use(StepperPlugin);
export default Vue.extend({
data: function() {
return {
steps: [{}, {}, {}, {}, {}],
animation: {enable: true, duration: 2000, delay: 1000}
};
}
});
</script>
string
Defines the CSS class to customize the Stepper appearance.
Defaults to ”
boolean
Enable or disable persisting component’s state between page reloads.
Defaults to false
boolean
Enable or disable rendering component in right to left direction.
Defaults to false
string
| StepLabelPosition
Defines the label position in the Stepper. The possible values are:
<template>
<ejs-stepper id="stepper" :steps="steps" labelPosition="top"></ejs-stepper>
</template>
<script>
import Vue from "vue";
import { StepperPlugin } from "@syncfusion/ej2-vue-navigations";
Vue.use(StepperPlugin);
export default Vue.extend({
data: function() {
return {
steps: [
{ label: 'Cart', icon: 'sf-icon-shopping-cart' },
{ label: 'Personal Info', icon: 'sf-icon-user-info' },
{ label: 'Delivery Address', icon: 'sf-icon-transport' },
{ label: 'Payment', icon: 'sf-icon-cash' },
{ label: 'Confirmation', icon: 'sf-icon-ordered' }
]
};
}
});
</script>
Defaults to StepLabelPosition.Bottom
boolean
Defines whether allows to complete one step in order to move to the next or not.
<template>
<ejs-stepper id="stepper" :steps="steps" :linear="true"></ejs-stepper>
</template>
<script>
import Vue from "vue";
import { StepperPlugin } from "@syncfusion/ej2-vue-navigations";
Vue.use(StepperPlugin);
export default Vue.extend({
data: function() {
return { steps: [{}, {}, {}, {}, {}] };
}
});
</script>
Defaults to false
string
Overrides the global culture and localization value for this component. Default global culture is ‘en-US’.
Defaults to ”
string
| StepperOrientation
Defines the orientation type of the Stepper. The possible values are:
Defaults to StepperOrientation.Horizontal
boolean
Defines whether the read-only mode is enabled for a Stepper control, which means that the user will not be able to interact with it.
Defaults to false
boolean
Defines a value that defines whether to show tooltip or not on each step.
Defaults to false
string
| StepType
Defines whether steps are display with only indicator, only labels or combination of both. The possible values are:
<template>
<ejs-stepper id="stepper" :steps="steps" stepType="indicator"></ejs-stepper>
</template>
<script>
import Vue from "vue";
import { StepperPlugin } from "@syncfusion/ej2-vue-navigations";
Vue.use(StepperPlugin);
export default Vue.extend({
data: function() {
return {
steps: [
{ label: 'Cart', icon: 'sf-icon-shopping-cart' },
{ label: 'Personal Info', icon: 'sf-icon-user-info' },
{ label: 'Delivery Address', icon: 'sf-icon-transport' },
{ label: 'Payment', icon: 'sf-icon-cash' },
{ label: 'Confirmation', icon: 'sf-icon-ordered' }
]
};
}
});
</script>
Defaults to StepType.Default
Defines the list of steps.
Defaults to []
string
| function
Defines the template content for each step.
<template>
<ejs-stepper id="stepper" :steps="steps" :template="template"></ejs-stepper>
</template>
<style>
.e-stepper-step-container.e-stepper-template > :not(.e-step-outline) {
display: flex;
min-width: 25px;
min-height: 25px;
align-items: center;
justify-content: center;
background-color: #baa2ee;
border-radius: 30%;
padding: 2px;
font-size: 15px;
}
</style>
<script>
import Vue from "vue";
import { StepperPlugin } from "@syncfusion/ej2-vue-navigations";
Vue.use(StepperPlugin);
export default Vue.extend({
data: function() {
return {
steps: [{}, {}, {}, {}, {}],
template: '<span>${currentStep}</span>'
};
}
});
</script>
Defaults to ”
string
| function
Defines the template content for the tooltip.
Defaults to ”
Destroy the stepper control.
Returns void
Move to next step from current step in Stepper.
Returns void
Move to previous step from current step in Stepper.
Returns void
Refreshes the position of the progress bar programmatically when the dimensions of the parent container are changed.
Returns void
Reset the state of the Stepper and move to the first step.
Returns void
EmitType<StepperRenderingEventArgs>
Event triggers before rendering each step.
Event callback that is raised after rendering the stepper.
EmitType<StepperChangedEventArgs>
Event triggers after active step changed.
EmitType<StepperChangingEventArgs>
Event triggers before active step change.
EmitType<StepperClickEventArgs>
Event triggers when clicked on step.