-2

I was wondering on to have an event every hour on every day in the AgendayDay view. I customized the timeslots to be an hour long. I will be filling the title/description with values from the database. I seen some questions answered for recurring events every monday for an example.

EDIT: I get the recurring event every monday as an example. I'm asking how do you create a different event for every HOUR without creating an event manually.

Something like this but for everyday. Of course, not every event will have the same value.enter image description here

tosh
  • 337
  • 1
  • 3
  • 13
  • 1
    Possible duplicate of: http://stackoverflow.com/q/15161654/830125 – Drew Gaynor Sep 28 '15 at 16:51
  • There's no better solution than creating 24 and have them repeat? `events: [{ title:"My repeating event", start: '10:00', // a start time (10am in this example) end: '14:00', // an end time (6pm in this example) dow: [ 1, 4 ] // Repeat monday and thursday }],` – tosh Sep 28 '15 at 17:35
  • Couldn't you just push 24 repeating events in a loop? – Drew Gaynor Sep 28 '15 at 18:13
  • Wouldn't that have a huge load on the calendar? – tosh Sep 29 '15 at 16:06
  • If each of 24 events must have a unique value, I don't see how you could do anything other than create 24 unique events. – Drew Gaynor Sep 29 '15 at 16:25
  • Is there a way to not show or not render events on the monthView of the calendar? – tosh Sep 29 '15 at 16:57
  • I would recommend updating your question to clarify that your requirement is to not render events in the month view, or post a new question regarding that. – Drew Gaynor Sep 29 '15 at 17:27

1 Answers1

0
for(timeIncrement = 0; timeIncrement < 24; timeIncrement++){
            $scope.events.push({
                title: 'Rooms Available [' + 11 + ']',
                start: new Date(yearClicked, monthClicked, dayClicked, timeIncrement)
            });
        }

Is what I came up with. This is inside a if statement when an available date has been clicked.

tosh
  • 337
  • 1
  • 3
  • 13