mattlewis92 / angular-bootstrap-calendar

A port of the bootstrap calendar widget to AngularJS (no jQuery required!)
https://mattlewis92.github.io/angular-bootstrap-calendar/
MIT License
798 stars 369 forks source link

Hide Time in Event List Based on Event Type #589

Closed StartupJC closed 7 years ago

StartupJC commented 7 years ago

Referencing issue #586 Is there a way to enable/disable for different types of events? The code referenced in issue #586 seem to be globals.

angular.module('myApp').run(function(calendarEventTitle) {
    calendarEventTitle.monthView = event => event.title;
});

I'm trying for something similar to the example below.

Event types:

  1. Task type: Event Name {action}

  2. Social type: Event Name (00:00) {action}

  3. Work type: Event Name (00:00) {action}

StartupJC commented 7 years ago

After some digging I came across the calendarEventTitle.js file. Should be able to create my own custom formatting based on the field assignment. Sorry for bothering.