mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +08:00
45 lines
883 B
TypeScript
45 lines
883 B
TypeScript
|
|
export interface PickerOptions {
|
|
columns: PickerColumn[];
|
|
buttons?: PickerButton[];
|
|
cssClass?: string | string[];
|
|
backdropDismiss?: boolean;
|
|
animated?: boolean;
|
|
|
|
mode?: string;
|
|
keyboardClose?: boolean;
|
|
id?: string;
|
|
}
|
|
|
|
export interface PickerButton {
|
|
text?: string;
|
|
role?: string;
|
|
cssClass?: string | string[];
|
|
handler?: (value: any) => boolean | void;
|
|
}
|
|
|
|
export interface PickerColumn {
|
|
name: string;
|
|
align?: string;
|
|
selectedIndex?: number;
|
|
prevSelected?: number;
|
|
prefix?: string;
|
|
suffix?: string;
|
|
options: PickerColumnOption[];
|
|
cssClass?: string | string[];
|
|
columnWidth?: string;
|
|
prefixWidth?: string;
|
|
suffixWidth?: string;
|
|
optionsWidth?: string;
|
|
refresh?: () => void;
|
|
}
|
|
|
|
export interface PickerColumnOption {
|
|
text?: string;
|
|
value?: any;
|
|
disabled?: boolean;
|
|
duration?: number;
|
|
transform?: string;
|
|
selected?: boolean;
|
|
}
|