メインコンテンツまでスキップ
バージョン: v8

ion-picker-legacy

scoped

Properties

animated

Descriptiontrueの場合、ピッカーはアニメーションを行います。
Attributeanimated
Typeboolean
Defaulttrue

backdropDismiss

Descriptiontrueの場合、バックドロップがクリックされるとピッカーが解除される。
Attributebackdrop-dismiss
Typeboolean
Defaulttrue

buttons

Descriptionピッカーの上部に表示されるボタンの配列。
Attributebuttons
TypePickerButton[]
Default[]

columns

Descriptionピッカーに表示されるカラムの配列。
Attributecolumns
TypePickerColumn[]
Default[]

cssClass

DescriptionカスタムCSSに適用する追加のクラス。複数のクラスを指定する場合は、スペースで区切る必要があります。
Attributecss-class
Typestring | string[] | undefined
Defaultundefined

duration

Descriptionピッカーが終了するまでの待ち時間をミリ秒単位で指定します。
Attributeduration
Typenumber
Default0

enterAnimation

Descriptionピッカーが表示されたときに使用するアニメーション。
Attributeenter-animation
Type((baseEl: any, opts?: any) => Animation) | undefined
Defaultundefined

htmlAttributes

Descriptionピッカーに渡す追加属性。
Attributehtml-attributes
Typeundefined | { [key: string]: any; }
Defaultundefined

isOpen

Descriptiontrueの場合、ピッカーは開きます。falseの場合、ピッカーは閉じます。ピッカーの表示をより細かく制御したい場合に使用します。それ以外の場合は pickerController や trigger プロパティを使用します。注意: ピッカーが終了しても isOpen は自動的に false に戻りません。あなたのコードでそれを行う必要があります。
Attributeis-open
Typeboolean
Defaultfalse

keyboardClose

Descriptiontrueの場合、オーバーレイが表示されたときにキーボードが自動的に解除されます。
Attributekeyboard-close
Typeboolean
Defaulttrue

leaveAnimation

Descriptionピッカーが解除されたときに使用するアニメーションです。
Attributeleave-animation
Type((baseEl: any, opts?: any) => Animation) | undefined
Defaultundefined

mode

Descriptionmodeは、どのプラットフォームのスタイルを使用するかを決定します。
Attributemode
Type"ios" | "md"
Defaultundefined

showBackdrop

Descriptiontrueの場合、ピッカーの後ろに背景が表示されます。
Attributeshow-backdrop
Typeboolean
Defaulttrue

trigger

Descriptionクリックするとピッカーが開くトリガー要素に対応するID。
Attributetrigger
Typestring | undefined
Defaultundefined

Events

NameDescription
didDismissピッカーが解散した後に発行されます。ionPickerDidDismissの略記です。
didPresentピッカーが提示された後に発行されます。ionPickerWillDismissの略記です。
ionPickerDidDismissピッカーが解散した後に発行されます。
ionPickerDidPresentピッカーが提示された後に発行されます。
ionPickerWillDismissピッカーが解散する前に発行されます。
ionPickerWillPresentピッカーが提示される前に発行されます。
willDismissピッカーが解散する前に発行されます。ionPickerWillDismissの略記です。
willPresentピッカーが提示される前に発行されます。ionPickerWillPresentの略記です。

Methods

dismiss

Descriptionピッカー・オーバーレイが表示された後、それを解除します。
Signaturedismiss(data?: any, role?: string) => Promise<boolean>

getColumn

Description指定された名前に一致するカラムを取得します。
SignaturegetColumn(name: string) => Promise<PickerColumn | undefined>

onDidDismiss

Descriptionピッカーが解散したことを解決するPromiseを返します。
SignatureonDidDismiss<T = any>() => Promise<OverlayEventDetail<T>>

onWillDismiss

Descriptionピッカーが解散するタイミングを解決するPromiseを返します。
SignatureonWillDismiss<T = any>() => Promise<OverlayEventDetail<T>>

present

Descriptionピッカー・オーバーレイを作成した後に提示します。
Signaturepresent() => Promise<void>

CSS Custom Properties

NameDescription
--backdrop-opacity背景の不透明度
--backdrop-opacity背景の不透明度
--backgroundピッカーの背景
--backgroundピッカーの背景
--background-rgbピッカーの背景(rgb形式)
--background-rgbピッカーの背景(rgb形式)
--border-colorピッカーのボーダーカラー
--border-colorピッカーのボーダーカラー
--border-radiusピッカーのボーダー半径
--border-radiusピッカーのボーダー半径
--border-styleピッカーのボーダースタイル
--border-styleピッカーのボーダースタイル
--border-widthピッカーのボーダー幅
--border-widthピッカーのボーダー幅
--heightピッカーの高さ
--heightピッカーの高さ
--max-heightピッカーの最大の高さ
--max-heightピッカーの最大の高さ
--max-widthピッカーの最大幅
--max-widthピッカーの最大幅
--min-heightピッカーの最小の高さ
--min-heightピッカーの最小の高さ
--min-widthピッカーの最小幅
--min-widthピッカーの最小幅
--widthピッカーの幅
--widthピッカーの幅