danheron / Heron.MudCalendar

Calendar component for MudBlazor
MIT License
149 stars 30 forks source link

Extending `CalendarItem` on `ItemChanged` and `ItemClicked` #152

Closed rwxzig closed 1 month ago

rwxzig commented 1 month ago

Is it possible to extend CalendarItem with extra parameters in case of ItemClicked or changed? I need to be able to pass more parameters than CalendarItem allows, and this is a stopper for me. The bare minimum would be Id of the item.

danheron commented 1 month ago

Yes, you can create a class that inherits from CalendarItem and includes any properties you want.

Have a look at the 'Custom Content' example in the documentation.