mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +08:00
@ -1,16 +1,17 @@
|
||||
|
||||
export interface PickerButton {
|
||||
text?: string;
|
||||
role?: string;
|
||||
cssClass?: string | string[];
|
||||
handler?: (value: any) => boolean | void;
|
||||
}
|
||||
|
||||
export interface PickerOptions {
|
||||
buttons?: PickerButton[];
|
||||
columns?: PickerColumn[];
|
||||
cssClass?: string | string[];
|
||||
backdropDismiss?: boolean;
|
||||
animated?: boolean;
|
||||
}
|
||||
|
||||
export interface PickerButton {
|
||||
text?: string;
|
||||
role?: string;
|
||||
cssClass?: string | string[];
|
||||
handler?: (value: any) => boolean | void;
|
||||
}
|
||||
|
||||
export interface PickerColumn {
|
||||
|
@ -81,7 +81,7 @@ export class Picker implements OverlayInterface {
|
||||
/**
|
||||
* If true, the picker will animate. Defaults to `true`.
|
||||
*/
|
||||
@Prop() willAnimate = true;
|
||||
@Prop() animated = true;
|
||||
|
||||
/**
|
||||
* Emitted after the picker has loaded.
|
||||
|
@ -11,6 +11,7 @@ A Picker is a dialog that displays a row of buttons and columns underneath. It a
|
||||
|
||||
| Property | Attribute | Description | Type |
|
||||
| ----------------- | ------------------ | ---------------------------------------------------------------------------------------------------------------- | -------------------- |
|
||||
| `animated` | `animated` | If true, the picker will animate. Defaults to `true`. | `boolean` |
|
||||
| `backdropDismiss` | `backdrop-dismiss` | If true, the picker will be dismissed when the backdrop is clicked. Defaults to `true`. | `boolean` |
|
||||
| `buttons` | -- | Array of buttons to be displayed at the top of the picker. | `PickerButton[]` |
|
||||
| `columns` | -- | Array of columns to be displayed in the picker. | `PickerColumn[]` |
|
||||
@ -21,7 +22,6 @@ A Picker is a dialog that displays a row of buttons and columns underneath. It a
|
||||
| `leaveAnimation` | -- | Animation to use when the picker is dismissed. | `AnimationBuilder` |
|
||||
| `overlayId` | `overlay-id` | | `number` |
|
||||
| `showBackdrop` | `show-backdrop` | If true, a backdrop will be displayed behind the picker. Defaults to `true`. | `boolean` |
|
||||
| `willAnimate` | `will-animate` | If true, the picker will animate. Defaults to `true`. | `boolean` |
|
||||
|
||||
|
||||
## Events
|
||||
|
Reference in New Issue
Block a user