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: README.md
+206-1Lines changed: 206 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,9 +26,214 @@ Include the following stylesheet on your document's head
26
26
27
27
## Properties
28
28
29
+
| Properties | Type | Values |
30
+
| :--------------- | :------- | :--------- |
31
+
|`steps`| Array of Objects | Each object is a step that will be included in the stepper |
32
+
|`locale`| String | Default: `en`. Current options: `en`, `es`. |
29
33
30
-
## Events
31
34
35
+
### Steps object properties
32
36
37
+
| Properties | Type | Values |
38
+
| :--------------- | :------- | :--------- |
39
+
|`icon`| String | Ex.: `mail`. Name of icons that belong to material-icons library |
40
+
|`name`| String | Name of the step. Each step name **MUST** be unique |
41
+
|`title`| String | Title that will be displayed below the step, on bold. |
42
+
|`subtitle`| String | Subtitle displayed below the title. |
43
+
|`component`| Component | Imported component that will be show on the content area of the step. |
44
+
|`completed`| Boolean | If step is completed or not. If `TRUE` a `done` material icon will replace the one given before. Only mark as completed when you want to let know the user that the previous step has been completed |
45
+
46
+
47
+
## Events emitted by stepper
48
+
49
+
| Event name | When |
50
+
| :--------------- | :------- |
51
+
|`completed-step`| Triggered when a step is completed. Completed meaning that current step has been left behind on the step list. Now you can mark your step object as completed if you desire it.|
52
+
|`active-step`| Current active step. It's `name` and `index` are exposed on the deployed payload.|
53
+
|`stepper-finished`| Event emitted when the user clicks the final button. Now it's time to execute a final callback method|
54
+
|`clicking-back`| Triggered when user clicks the back button to return to a previous step|
55
+
56
+
## Events that can be emitted by content component
57
+
58
+
| Event name | When |
59
+
| :--------------- | :------- |
60
+
|`can-continue`| By default the *next button* will be disabled until the event `can-continue` is triggered with an object containing the property `value`. `Value` accepts a boolean, if `true` next/finish button will be enabled if false disabled.|
0 commit comments