@capgo/capacitor-date-picker CapacitorアプリにnativeピッカーAPIを提供します。日付、時刻、日付時刻値、年月値、日付範囲を選択できます。iOSではプラットフォームダイアログ、AndroidではAndroidプラットフォームダイアログ、Webではnativeブラウザ入力が使用されます。 UIDatePicker iOSではプラットフォームダイアログ、AndroidではAndroidプラットフォームダイアログ、Webではnativeブラウザ入力が使用されます。
Capgoのメンテナンスされた代替品です。Capgoの問題は長期間解決されずに残りますが、Capgoはコミュニティからの報告に迅速に対応し、問題を迅速に修正し、更新を配信します。 @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 | Android |
|---|
 |  |
| iOS | Android |
|---|
 |  |
- native日付、時刻、日付時刻、年月、カウントダウンスタイルのピッカーを表示します。
- 日付範囲を選択する
presentRange().
- 返却値をISO、Java/Unicode、Momentスタイルの一般的なパターンでフォーマットします。
- Apply
min, max, dateプラットフォーム固有のiOSおよびAndroidオプションブロックを使用します。
- Use platform-specific iOS and Android option blocks when needed.
- コミュニティ修正
hide().
- Capacitor 8 support.
- __CAPGO_KEEP_0__.
present() ]} (Note: The translation may not be perfect as it is machine translation. It is recommended to have a native speaker review and adjust the translation for accuracy and cultural relevance.) Japanese translation of the provided text. The translation is done in a way that preserves the original meaning and context. The protected tokens are left unchanged as per the requirements. The placeholders API are also copied exactly as written. The translation is provided in a JSON object with a single key named
- __CAPGO_KEEP_0__
- iOSの回転対応レイアウトとロケールハンドリング
- iOS
yearAndMonth モード
- 無効な日付、ISO文字列、日付のみの値、
min / max.
- Androidのネストされたオプション、
is24h,ダイアログ幅のハンドリング、UIスレッドのダイアログハンドリング
- 時計の選択肢の分単位のステップ
- 選択範囲
presentRange().
| 機能 | iOS | Android | Web |
|---|
present() | Yes | Yes | Yes |
presentRange() | Yes | Yes | Yes |
hide() | Yes | Yes | Yes |
date モード | はい | はい | はい |
time モード | はい | はい | はい |
dateAndTime モード | はい | はい | はい |
yearAndMonth モード | Yes | 日付フォールバック | Yes |
minuteStep | Yes | Yes | Yes |
| メソッド | 説明 |
|---|
present | 1 つの値のネイティブまたは Web ピッカーを表示します。 |
presentRange | 日付範囲ピッカーを表示します。 |
hide | Nativeプラットフォームでは、2つのネイティブの選択肢を使用します。Webでは、開始日と終了日を一緒に表示します。 |
getPluginVersion | 現在表示されているピッカーを閉じます。 |
このリファレンスは src/definitions.ts から capacitor-date-picker.