Skip to content

@capgo/capacitor-date-picker

Capacitor用のネイティブの日付、時刻、日付時刻、年月、範囲ピッカー、Webフォールバックを維持します。

@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
Animated iOS demo of @capgo/capacitor-date-picker opening, selecting a date, and closingアニメーション付きのAndroidデモで、@capgo/capacitor-date-pickerが開き、日付を選択し、閉じます。
iOSAndroid
iOSのスクリーンショットで、@capgo/capacitor-date-pickerがネイティブの日付ピッカーを表示しています。Androidのスクリーンショットで、@capgo/capacitor-date-pickerがネイティブの日付ピッカーを表示しています。
  • ネイティブの日付、時刻、日時、年月、カウントダウンスタイルのピッカーを表示します。
  • 日付範囲を選択することができます。 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().

セクション「プラットフォームサポート」

機能
iOSAndroidWebPlatform Support
present()はいはいはい
presentRange()はいはいはい
hide()はいはいはい
date __CAPGO_KEEP_0__はいはいはい
time モードはいはいはい
dateAndTime モードはいはいはい
yearAndMonth モードはい日付フォールバックはい
minuteStepはいはいはい
メソッド説明
present単一の値のネイティブまたはWebピッカーを表示します。
presentRange日付範囲ピッカーを表示します。ネイティブプラットフォームでは2つのネイティブの選択肢を使用し、Webでは開始日と終了日を一緒に表示します。
hide現在表示されているピッカーを閉じます。
getPluginVersionプラットフォーム実装バージョンマーカーを取得します。

__CAPGO_KEEP_0__は、 src/definitions.tscapacitor-date-picker.