/
githubmirror
/
ionic
Обзор
Документация
Войти
/
githubmirror
/
ionic
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
core/src/components/picker-legacy/picker-interface.ts
56 строк
1 KB
Liam DeBeasi
feat(picker): add inline picker (#28689)
13 дек 2023, 21:03
Не верифицирован
13 дек 2023, 21:03
cd5c099
Код
Авторство
О чём код?
import type { AnimationBuilder, Mode } from '../../interface'; export interface PickerOptions { columns: PickerColumn[]; buttons?: PickerButton[]; cssClass?: string | string[]; showBackdrop?: boolean; backdropDismiss?: boolean; animated?: boolean; mode?: Mode; keyboardClose?: boolean; id?: string; htmlAttributes?: { [key: string]: any }; enterAnimation?: AnimationBuilder; leaveAnimation?: AnimationBuilder; } export interface PickerButton { text?: string; role?: string; cssClass?: string | string[]; handler?: (value: any) => boolean | void; } export interface PickerColumn { name: string; align?: string; /** * Changing this value allows the initial value of a picker column to be set. */ selectedIndex?: number; prevSelected?: number; prefix?: string; suffix?: string; options: PickerColumnOption[]; cssClass?: string | string[]; columnWidth?: string; prefixWidth?: string; suffixWidth?: string; optionsWidth?: string; } export interface PickerColumnOption { text?: string; value?: any; disabled?: boolean; duration?: number; transform?: string; selected?: boolean; /** * The optional text to assign as the aria-label on the picker column option. */ ariaLabel?: string; }