You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/lib/stepper/stepper.md
+11-7
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,8 @@ For more complex labels, add a template with the `matStepLabel` directive inside
41
41
```
42
42
43
43
#### Label position
44
-
For `mat-horizontal-stepper` it's possible to define the position of the label. `end` is the default value, while `bottom` will place it under the step icon instead of at its side.
44
+
For `mat-horizontal-stepper` it's possible to define the position of the label. `end` is the
45
+
default value, while `bottom` will place it under the step icon instead of at its side.
45
46
This behaviour is controlled by `labelPosition` property.
46
47
47
48
<!-- example(stepper-label-position-bottom) -->
@@ -163,7 +164,8 @@ by placing a `matStepperIcon` for each of the icons that you want to override. T
163
164
Note that you aren't limited to using the `mat-icon` component when providing custom icons.
164
165
165
166
#### Step States
166
-
You can set the state of a step to whatever you want. The given state by default maps to an icon. However, it can be overridden the same way as mentioned above.
167
+
You can set the state of a step to whatever you want. The given state by default maps to an icon.
168
+
However, it can be overridden the same way as mentioned above.
167
169
168
170
```html
169
171
<mat-horizontal-stepper>
@@ -194,14 +196,15 @@ You can set the state of a step to whatever you want. The given state by default
194
196
</mat-horizontal-stepper>
195
197
```
196
198
197
-
In order to use the custom step states, you must add the `displayDefaultIndicatorType` option to the global default stepper options which can be specified by providing a value for
198
-
`MAT_STEPPER_GLOBAL_OPTIONS` in your application's root module.
199
+
In order to use the custom step states, you must add the `displayDefaultIndicatorType` option to
200
+
the global default stepper options which can be specified by providing a value for
201
+
`STEPPER_GLOBAL_OPTIONS` in your application's root module.
199
202
200
203
```ts
201
204
@NgModule({
202
205
providers: [
203
206
{
204
-
provide: MAT_STEPPER_GLOBAL_OPTIONS,
207
+
provide: STEPPER_GLOBAL_OPTIONS,
205
208
useValue: { displayDefaultIndicatorType: false }
206
209
}
207
210
]
@@ -212,13 +215,14 @@ In order to use the custom step states, you must add the `displayDefaultIndicato
212
215
213
216
### Error State
214
217
215
-
The stepper can now show error states by simply providing the `showError` option to the `MAT_STEPPER_GLOBAL_OPTIONS` in your application's root module as mentioned above.
218
+
The stepper can now show error states by simply providing the `showError` option to the
219
+
`STEPPER_GLOBAL_OPTIONS` in your application's root module as mentioned above.
0 commit comments