[PR #979] Change DatePicker icon based on TimeOnly parameter. #2444

Open
opened 2026-01-29 18:18:50 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/radzenhq/radzen-blazor/pull/979

State: closed
Merged: Yes


Issue: The DatePicker's button icon is calendar_today even if the DatePicker's TimeOnly parameter is set to true.

Proposed Solution: Substitute the calendar_today icon with the schedule icon when the DatePicker's TimeOnly parameter is set to true.

This PR updates the DatePicker's CSS, code and template to support the icon logic. I've also included two new unit tests in this PR to test which icon is displayed.

**Original Pull Request:** https://github.com/radzenhq/radzen-blazor/pull/979 **State:** closed **Merged:** Yes --- **Issue:** The **DatePicker's** button icon is `calendar_today` even if the **DatePicker's** `TimeOnly` parameter is set to `true`. **Proposed Solution:** Substitute the `calendar_today` icon with the `schedule` icon when the **DatePicker's** `TimeOnly` parameter is set to `true`. This PR updates the DatePicker's CSS, code and template to support the icon logic. I've also included two new unit tests in this PR to test which icon is displayed.
claunia added the pull-request label 2026-01-29 18:18:50 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#2444