angular / angular/components

Expose information about the current range to the datepicker actions

オープン
#23,042 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る
area: material/datepicker feature P4
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

#### What are you trying to do?

I am trying to disable the apply button inside mat-date-range-picker-actions until a range is selected

#### What troubleshooting steps have you tried?

tried to see if any events fire on day selection so I can determine if the range is correct

#### Reproduction

https://stackblitz.com/edit/angular-date-range-picker-actions?file=src/app/date-range-picker-forms-example.html
Well, here is a start point. I could not find a way to disable the Apply button until both dates are selected.
Reson is the form data is not updated until Apply is clicked and I could not find any events that trigger on day selection. There are some for year and month but not day.

#### Environment

- Angular: 12
- CDK/Material: latest
- Browser(s): N/A
- Operating System (e.g. Windows, macOS, Ubuntu): N/A

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

リンクされている StackBlitz の再現から始め、mat-date-range-picker-actions がどのように state を受け取り、日付の選択がどのように公開されているかを追跡します。完了条件は、actions が現在の範囲で両方の日付が選択されているかどうかを判定でき、範囲が完成するまで Apply ボタンを無効のままにできることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
frontend
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。