Skip to content

Conversation

lekhmanrus
Copy link
Contributor

Add timepicker option template and example.

close #31209

@lekhmanrus lekhmanrus requested a review from a team as a code owner October 8, 2025 00:10
@lekhmanrus lekhmanrus requested review from andrewseguin and wagnermaciel and removed request for a team October 8, 2025 00:10
@angular-robot angular-robot bot added detected: feature PR contains a feature commit area: material/timepicker labels Oct 8, 2025
@lekhmanrus lekhmanrus force-pushed the feat/31209/add-option-template_ branch from e5c4bc4 to 653d0cc Compare October 8, 2025 22:24
protected _panelTemplate = viewChild.required<TemplateRef<unknown>>('panelTemplate');
protected _timeOptions: readonly MatTimepickerOption<D>[] = [];
protected _options = viewChildren(MatOption);
protected _optionTemplate = contentChild<TemplateRef<MatTimepickerOption<D>>>(TemplateRef);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I think we may have to provide this through an input or have a directive that users apply on the ng-template. Querying for any TemplateRef inside the timepicker can pick up something we didn't intend to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(mat-timepicker): Add option template
2 participants