Skip to content

Commit f8219a8

Browse files
committed
Document confirmationFactory().disable()
Closes #512
1 parent 1a81786 commit f8219a8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/javascript/components_confirmation.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,17 @@ if (result) {
103103
}
104104
```
105105

106+
### Disable
107+
108+
Disable an object:
109+
110+
```ts
111+
const result = await confirmationFactory().disable(theObjectName);
112+
if (result) {
113+
console.log("The user has requested to disable the object.");
114+
}
115+
```
116+
106117
## Custom Confirmation Prompts
107118

108119
The `custom()` permits a custom confirmation dialog with a user-defined dialog content.

0 commit comments

Comments
 (0)