Skip to content
This repository has been archived by the owner on Jun 19, 2018. It is now read-only.

Add event end time to calendar #132

Closed
boyarskiy opened this issue Aug 7, 2015 · 6 comments
Closed

Add event end time to calendar #132

boyarskiy opened this issue Aug 7, 2015 · 6 comments
Assignees
Milestone

Comments

@boyarskiy
Copy link

I have another question.
How can I add event end time to calendar?
http://dl2.joxi.net/drive/0004/1007/275439/150807/e24267848e.jpg

@jozsef-halmi
Copy link

Hello!

I'm interested in this one, too. I'd like to have end times of events at day view.

@boyarskiy
Copy link
Author

Hi!
Anybody here?

@mattlewis92
Copy link
Owner

Sorry I'm super busy with work atm and don't have a lot of time right now, your best bet for now is to add a custom template, I will try and find some time to add an option to display end dates as well.

@mattlewis92 mattlewis92 added this to the 0.15.x milestone Aug 17, 2015
@mattlewis92 mattlewis92 self-assigned this Aug 17, 2015
@jozsef-halmi
Copy link

Hi,

Mattlewis92, You've mentioned adding a custom template would solve the problem. I'd need another functions too, so I'd like to do it, but I'm not an experienced web developer. How can I make angular calendar use the templates given in the src/templates dir? I've already fount out that I need to use the non-tpls javascript, but I could not find out the next step. (no error, nothing shows)

Thanks for your reply.

@mattlewis92
Copy link
Owner

You can use a decorator to change the day view template url like so:

app.config(function($provide) {
  $provide.decorator('mwlCalendarDayDirective', function($delegate) {
    var directive = $delegate[0];
    directive.templateUrl = 'URL_TO_YOUR_DAY_VIEW_TEMPLATE.html';
    return $delegate;
  });
});

Then just copy the template into your project to the path you set with the decorator and change whatever you want :)

@jozsef-halmi
Copy link

Thank you, with your help I've successfully managed to get it work. I really appreciate your fast response and this great product you've made. Thanks a lot!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants