gismofx / toast_ui.blazor_calendar

Toast UI Calendar Wrapper For Blazor
MIT License
54 stars 8 forks source link

now TUICalendarOptions properly makes use of all options on the scheduleView and taskView properties #46

Open koga25 opened 2 years ago

koga25 commented 2 years ago

The properties didn't allow the person to use only one of the settings of the property, if you wanted to show only task/milestone on taskView or only allday/time, it wasn't possible.

Now those properties work as a string[], you can define what settings you want in each one by modifying the array or using the helper functions defined in the files.

gismofx commented 2 years ago

Thanks for working on this! I punted on this one and haven't come back to finish.

I think we need to maintain the taskView and scheduleView enumerated helper types so the api easier/more intuitive for the users... the tricker part is writing the json converters. Would you want to take a go at that? :)

Also, please make your PRs to the dev branch.

koga25 commented 2 years ago

Something like this? I never tried making a json converter before, but it's working. I also included implicit conversions for string[] and bool values to make it equal to the documentation.

Changed to dev branch.