Paul-DS / bootstrap-year-calendar

[DEPRECATED] A fully customizable year calendar widget, for boostrap !
Apache License 2.0
294 stars 243 forks source link

Multiple datasources in the same calendar #218

Open halobaid opened 5 years ago

halobaid commented 5 years ago

Hello, Im new here. I just would like to know how can i add multiple datasources on the same calendar. For example i have a datasource of events and another datasource of holidays and they are saved in two separated tables in the database but i want to view both of the in the calendar where the events should be styled as 'border' and the holidays should be styled as 'background' How can i do that? Thanks

mennolodder commented 5 years ago

You can use the 'color' field in the events to support seperate types, in a custom style handler you can set different styles based on the color field. (although I'm not sure this needed, perhaps you can also do it with CSS)

This doens't solve the fact that you have single datasource array with multiple types, instead of multiple lists(you have to map this yourself)