-
Notifications
You must be signed in to change notification settings - Fork 6.8k
feat(material/datepicker) allow custom pickers with date inputs #20864
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(material/datepicker) allow custom pickers with date inputs #20864
Conversation
36773a0
to
dc8c7bb
Compare
a963660
to
75b1ce0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last comment from me, @mmalerba should also take a quick look
openedStream: EventEmitter<void>; | ||
stateChanges: Subject<void>; | ||
open(): void; | ||
registerInput(input: C): MatDateSelectionModel<S, D>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is a public API, each of these members need a JsDoc description (these are auto generated into material.angular.io)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after Jeremy's comment is addressed
75b1ce0
to
1648eea
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Refactor material datepicker so apps can bind custom picker components to date inputs.
API changes
MatDatepickerBase
:_registerInput()
->registerInput()
_stateChanges
->stateChanges
_datepickerInput
->datepickerInput
MatDatepickerPanel
interface (recommendations for another name?).MatDatepickerInput
,MatDateRangeInput
, andMatDatepickerToggle
to receive aMatDatepickerPanel
instead of a specific implementation ofMatDatepickerBase
.