disabled
Specifies whether the UI component item responds to user interaction.
hint
Specifies the hint text that appears when an item (step) is hovered over or long-pressed.
icon
Specifies the indicator icon.
This property accepts one of the following:
- The icon's URL
- The icon's name if the icon is from the DevExtreme icon library
- The icon's CSS class if the icon is from an external icon library (see External Icon Libraries)
- The icon in the Base64 format
- The icon in the SVG format. Ensure that the source is reliable.
isValid
Specifies a visual indicator for validation.
- If
false, a step displays a "validation failed" state. - If
true, a step displays a "validation succeeded" state. - If
undefined, a step shows no validation information.
optional
Marks the step as optional.
- If
falseorundefined, a step shows no "optional" information. - If
true, a step displays an "(Optional)" caption.
template
Specifies a template that should be used to render this item only.
jQuery
The following types of the specified value are available.
- Assign a string containing the name of the required template.
- Assign a jQuery object of the template's container.
- Assign a DOM Node of the template's container.
- Assign a function that returns the jQuery object or a DOM Node of the template's container.
The following example adds a custom item to the component.
$(function() {
$("#stepperContainer").dxStepper({
// ...
items: [
{
// ...
template: '<div>Custom Item</div>'
}
]
});
});Angular
The following types of the specified value are available.
- Assign a string containing the name of the required template.
- Assign a DOM Node of the template's container.
The following example adds a custom item to the component. Note that Angular uses custom templates instead of the template property.
<dx-stepper ... >
<dxi-item ... >
<div *dxTemplate>
<div>Custom Item</div>
</div>
</dxi-item>
</dx-stepper>
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
// ...
}
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { DxStepperModule } from 'devextreme-angular';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
DxStepperModule
],
providers: [ ],
bootstrap: [AppComponent]
})
export class AppModule { }Vue
The following types of the specified value are available.
- Assign a string containing the name of the required template.
- Assign a DOM Node of the template's container.
The following example adds a custom item to the component. Note that Vue uses custom templates instead of the template property.
<template>
<DxStepper ... >
<dxItem ... >
<div>Custom Item</div>
</dxItem>
</DxStepper>
</template>
<script>
import DxStepper, {
DxItem
} from 'devextreme-vue/stepper';
export default {
components: {
DxStepper,
DxItem
},
// ...
}
</script>React
The following types of the specified value are available.
- Assign a string containing the name of the required template.
- Assign a DOM Node of the template's container.
The following example adds a custom item to the component. In React, specify the render or component properties.
import React from 'react';
import Stepper, {
Item
} from 'devextreme-react/stepper';
const renderCustomItem = () => {
return <div>Custom Item</div>;
}
const App() = () => {
return (
<Stepper ... >
<Item ...
render={renderCustomItem}
>
</Item>
</Stepper>
);
}
export default App;See Also
text
Specifies text displayed for the UI component item.
If you use both this property and a template, the template overrides the text.