components icon indicating copy to clipboard operation
components copied to clipboard

feat(mat-timepicker): Add option template

Open oOps1627 opened this issue 5 months ago • 0 comments
trafficstars

Feature Description

Currently, to change the label of an option, I have to override the entire list of options or implement a custom DateAdaptor. But that's not exactly what I need. I want to be able to provide a custom template for a label

Use Case

In my case, I want to add a duration to each option, which will be calculated based on a specific time. The custom template will allow me to easily change the label text and also apply different CSS styles for time and duration

Image

oOps1627 avatar May 23 '25 13:05 oOps1627