Add dialog.js
17
dialog.js.md
Normal file
17
dialog.js.md
Normal file
@@ -0,0 +1,17 @@
|
||||
```javascript
|
||||
import { dialog, factory, UserDialog } from './dialog.js';
|
||||
```
|
||||
|
||||
## dialog.TYPE(message, ?title, ?actions, ?options) → Promise
|
||||
|
||||
The `dialog` class is a proxy around `factory.showDialog` that saves a few characters. The type can be any string, and styling can be applied using the `-style-TYPE` class.
|
||||
|
||||
## factory.showDialog(type, message, title, actions, options) → Promise
|
||||
|
||||
Create and show a new dialog. The type can be any string, and styling can be applied using the `-style-TYPE` class.
|
||||
|
||||
## class UserDialog
|
||||
|
||||
### constructor(style, title, message, actions, options)
|
||||
|
||||
### show() → Promise
|
||||
Reference in New Issue
Block a user