These are chat archives for angular-ui/ui-calendar

26th
Oct 2015
Guilherme R Vasconcelos
@guilherme6191
Oct 26 2015 16:06
@eddiriarte it's working now, thanks. I was not sure about the button on the HTML. But I have another problem now. I need to add the dayClick and use it to create an event. Any thoughts?
eddiriarte
@eddiriarte
Oct 26 2015 17:54
@guilherme6191 you can implement the dayClick callback to display a form and then with these data to add an event to your calendar.
Guilherme R Vasconcelos
@guilherme6191
Oct 26 2015 18:24

@eddiriarte would you have an example? I did something like that:
select : function(date,start, end, allDay){
$scope.addEventSelected(date,start);

And it works. But I am still kinda lost about the information I need.

eddiriarte
@eddiriarte
Oct 26 2015 18:47
what kind of information you need to store for each event? ...
just as an example
Guilherme R Vasconcelos
@guilherme6191
Oct 26 2015 18:49
in the future I will have to use my own Object, because there are a few more attributes I'll need to store.
For now, start, end, title is good for starters
eddiriarte
@eddiriarte
Oct 26 2015 18:50
its javascript you can store or even overwrite anything you want on it...
Guilherme R Vasconcelos
@guilherme6191
Oct 26 2015 18:57
yeah.
I am just not sure how to do a modal (that opens when I use the select function)