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
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -95,9 +95,9 @@ The `ConfirmComponentHost` accepts the following props:
95
95
96
96
|Property|Required|Description|
97
97
|---|---|---|
98
-
|renderAlert|yes|Provideafunction which renders the alert component. See [renderAlert](#renderAlert) |
99
-
| renderConfirm | yes | Provide a function which renders the confirmation component. See [renderConfirm](#renderConfirm) |
100
-
| renderChoice | no | Provide a function which renders the choice component. See [renderChoice](#renderChoice) |
98
+
|renderAlert|yes|Provideafunction which renders the alert component. See [renderAlert](#renderalert) |
99
+
| renderConfirm | yes | Provide a function which renders the confirmation component. See [renderConfirm](#renderconfirm) |
100
+
| renderChoice | no | Provide a function which renders the choice component. See [renderChoice](#renderchoice) |
101
101
| strings | no | Takes an object to provide default values for `yes`, `no`, and `cancel` button captions. Use this to localize these texts. |
102
102
| alertDurations | no | You can provide an object to set the durations of an alert for each severity in ms. The defaults are: info: 3000, success: 3000, warning: 10000, error: 10000. |
103
103
@@ -136,6 +136,7 @@ The `ConfirmComponentHost` accepts the following props:
136
136
| isOpen | Is the choice dialog opened? |
137
137
| title | The optional title of the choice. |
138
138
| options | The list of selectable options to show. |
139
+
| type | The optional type of the options to distinguish when rendering. |
139
140
| cancelCaption | The caption of the action to cancel the choice. |
140
141
| onConfirm | Call this function when a choice is selected. |
141
142
| onCancel | Call this function when the choice is cancelled. |
@@ -172,6 +173,7 @@ To show a choice to the user, use the `choose` function. It takes one options pa
172
173
| --- | --- | --- |
173
174
| title | no | The title of the choice. |
174
175
| options | yes | The possible choices. |
176
+
| type | no | The optional type of the options to distinguish when rendering. |
175
177
| cancelCaption | no | The caption of the cancel action. If not provided the `cancel` property of `strings` is used. The default is "Cancel". |
176
178
177
179
This function returns a `Promise`. It will be resolved with the selected option and rejected if the choice is cancelled.
0 commit comments