scoutforpets / ember-fullcalendar

An Ember Component for FullCalendar and FullCalendar Scheduler
MIT License
39 stars 45 forks source link

date changes #6

Closed miguelcobain closed 8 years ago

miguelcobain commented 8 years ago

Same reasoning for date. This (along with viewName) allows us to control the calendar using a data down approach.

jamesdixon commented 8 years ago

I just tried to set defaultDate on the component and it doesn't work, which is what I believe your reference was to viewName not being automatically inserted in the other PR. From the FC documentation, this appears to be the correct option to set the start date when the calendar loads. The solution you provided works, but I'm not convinced it's necessary. Thoughts?

DanChadwick commented 8 years ago

I too would like to be able to navigate the current date from outside the component.

DanChadwick commented 8 years ago

This PR seems solid and would allow me to delete the observer that I'm using. It is in accordance with Ember's Data-Down/Actions-Up methodology.

@jamesdixon: defaultDate only sets the date when fullcalendar is initially displayed. This PR adds a new date attribute that can be bound in the template. When date changes, ember-fullcalendar will cause fullcalendar to navigate to the new date.

RobbieTheWagner commented 8 years ago

@DanChadwick I agree that this looks to be a pretty straight forward and small PR. I will look into merging it when I get home tonight.

jamesdixon commented 8 years ago

closed via 3bd8852