-
Notifications
You must be signed in to change notification settings - Fork 369
Allow the event colors to be specified on the event object #402
Comments
Just a (pretty obvious) comment, this enhancement might be related to the |
I understand that you want to add the possibility to define the event's color customly instead of just having to choose one of the provided types? Is that correct, because that would be super awesome! 👍 |
Yup that's right, I've already implemented it in the angular2 version so it makes sense to backport it. |
Oh man, that's super awesome! Just this morning I was thinking about writing you a feature request about exactly that function woohoo! 👍 👍 |
Big props for making this happen! If I update through bower or npm will this change be available? |
Excellent! Also, I am just curious about the "src" directory within the project. What does it contain and for what purpose? I seem to only be including the files from "dist" and have things working as expected. Lastly, is it realistic to have dynamic change of colors for calendar events? That is, can I somehow set the colors dynamically AFTER populating the calendar with events? Should I be rewriting the entire JSON to the calendar or just cherry-picking a certain entry from it? Would it update without refresh? |
src contains the source code, dist contains the built bundled files i.e. I use webpack to bundle all the files together, otherwise you wouldn't be able to use the files in the browser as require doesn't exist. Changing the colors after creating the events should work, in fact you can see it in the demo (scroll to the event editor at the end and change the primary color of an event to see it update: https://mattlewis92.github.io/angular-bootstrap-calendar/#?example=kitchen-sink) |
I have another related question. If you were to try changing events in the calendar dynamically, would you just address the |
Yup, the events array is deep watched by angular so any changes you make to it will be automatically reflected in the calendar. |
When I make a change in an event, the calendar makes the change, but when when I go back to edit the same event, the data is old. How can I update data from a certain event and see them updated on the form? |
I can't reproduce this, can you make a plunker? (You can generate one from any of the demos)
|
Hello Matt. I already solve the problem. It's already working. Thanks. |
No description provided.
The text was updated successfully, but these errors were encountered: