danheron / Heron.MudCalendar

Calendar component for MudBlazor
MIT License
174 stars 33 forks source link

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

Closed rwxzig closed 3 months ago

rwxzig commented 3 months 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 3 months 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.