简体   繁体   中英

Custom Event Type in angular bootstrap calendar

https://github.com/mattlewis92/angular-bootstrap-calendar

In the examples event.type is INFO, WARNING etc. Can I add custom event types? I would like the event types to be dynamic.

I do not believe that you can have custom event types but I am not 100% sure. The event type attribute is required and can be 6 different types:

type: 'info', // The type of the event (determines its color). Can be important, warning, info, inverse, success or special

The type of event only determines the color though so I am not sure why you would need a custom type. You can already customize your event with your personal information. And then tag it as a certain type for the color effect.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM