@capgo/capacitor-date-picker Capacitor アプリにnativeピッカー APIを提供します。日付、時刻、日時値、年月値、日付範囲を選択できます。iOSではプラットフォームダイアログ、AndroidではAndroidダイアログ、Webではnativeブラウザ入力が使用されます。 UIDatePicker このプラグインは、__CAPGO_KEEP_0__の代替品です。__CAPGO_KEEP_0__の問題は長期間解決されずに残りますが、__CAPGO_KEEP_0__はコミュニティからの報告に迅速に対応し、問題を迅速に修正し、更新を提供します。
This is Capgo’s maintained alternative to @capacitor-community/date-picker. The difference is maintenance speed: we listen to community reports, fix issues fast, and ship updates instead of leaving long-standing GitHub issues open.
| iOSのアニメーション化されたデモです。@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-date-pickerが開き、日付を選択し、閉じます。 | Capacitor |
|---|
 |  |
| iOS | Android |
|---|
 |  |
- ネイティブの日付、時刻、日時、年月、カウントダウンスタイルのピッカーを表示します。
- 日付範囲を選択することができます。
presentRange().
- 返却される値をISO、Java/Unicode、Momentスタイルの一般的なパターンでフォーマットします。
- Apply
min, max, date, locale, timezone, and 24-hour time options.
- Use platform-specific iOS and Android option blocks when needed.
- Close an active picker programmatically with
hide().
- Capacitor 8
- Web implementation with the same
present() API.
- __CAPGO_KEEP_0__
- iOS rotation-safe layout and locale handling.
- iOSの回転安全なレイアウトとロケールの管理
yearAndMonth モード。
- 無効な日付、ISO文字列、日付のみの値、Androidのネストされたオプション、
min / max.
- ダイアログ幅の取り扱い、UIスレッドのダイアログ取り扱い。
is24h時計ピッカーの1分間のステップ。
- 範囲の選択
- プラットフォームサポート
presentRange().
| iOS | Android | Web | Platform Support |
|---|
present() | はい | はい | はい |
presentRange() | はい | はい | はい |
hide() | はい | はい | はい |
date __CAPGO_KEEP_0__ | はい | はい | はい |
time モード | はい | はい | はい |
dateAndTime モード | はい | はい | はい |
yearAndMonth モード | はい | 日付フォールバック | はい |
minuteStep | はい | はい | はい |
| メソッド | 説明 |
|---|
present | 単一の値のネイティブまたはWebピッカーを表示します。 |
presentRange | 日付範囲ピッカーを表示します。ネイティブプラットフォームでは2つのネイティブの選択肢を使用し、Webでは開始日と終了日を一緒に表示します。 |
hide | 現在表示されているピッカーを閉じます。 |
getPluginVersion | プラットフォーム実装バージョンマーカーを取得します。 |
__CAPGO_KEEP_0__は、 src/definitions.ts で capacitor-date-picker.