mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
docs(actionsheet): add docs for actionsheet options
This commit is contained in:
@@ -124,6 +124,28 @@ import {ViewController} from '../nav/view-controller';
|
||||
}
|
||||
|
||||
/**
|
||||
* Open an action sheet with the following options
|
||||
*
|
||||
* | Option | Type | Description |
|
||||
* |-----------------------|------------|-----------------------------------------------------------------|
|
||||
* | title |`string` | The title for the actionsheet |
|
||||
* | subTitle |`string` | The sub-title for the actionsheet |
|
||||
* | cssClass |`string` | An additional class for custom styles |
|
||||
* | enableBackdropDismiss |`boolean` | If the actionsheet should close when the user taps the backdrop |
|
||||
* | buttons |`array<any>`| An array of buttons to display |
|
||||
*
|
||||
* For the buttons:
|
||||
*
|
||||
* | Option | Type | Description |
|
||||
* |----------|----------|--------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
* | text | `string` | The buttons text |
|
||||
* | icon | `icon` | The buttons icons |
|
||||
* | handler | `any` | An express the button shoule evaluate |
|
||||
* | cssClass | `string` | An additional class for custom styles |
|
||||
* | role | `string` | How the button should be displayed, `destructive` or `cancel`. If not role is provided, it will display the button without any additional styles |
|
||||
*
|
||||
*
|
||||
*
|
||||
* @param {object} opts Action sheet options
|
||||
*/
|
||||
static create(opts: {
|
||||
|
||||
Reference in New Issue
Block a user