Comments (3)
Have you tried watching the Id value and updating the associated events
array directly? This would eliminate the need to call fullcalendar methods
from the scope.
On Feb 20, 2014 9:54 PM, "Spencer Sims" [email protected] wrote:
Hi,
I have a dropdown that modifies a ng-model with an id. I then use this id
to modify the url parameter which the calendar directive then uses to
render events. When the user changes the dropdown, how do I let the
ui-calendar be aware of the change, destroy the events that were there, and
then repopulate the events based on the new url with the new id?In the function that is fired in the ng-change event on the dropdown I
have:$scope.caregiverSchedule.fullCalendar('refetchEvents');
which does not seem to be working for me. If I pass in:
$scope.caregiverSchedule.fullCalendar('destroy');
then the calendar is destroyed.
If I display the changed url in the template, I can see that it indeed has
changed.I love this calendar and I love Angular! I just can't seem to get my head
around this now.Reply to this email directly or view it on GitHubhttps://github.com//issues/79
.
from ui-calendar.
to update the events using the id, I need to go do an ajax call to the server to get the new events. I don't have them stored locally.
from ui-calendar.
You can still use the method I described. Just request for the events when the Id changes and push to the array inside the promise callback.
Thanks
Josh Kurz (mobile)
----- Reply message -----
From: "Spencer Sims" [email protected]
To: "angular-ui/ui-calendar" [email protected]
Cc: "Josh Kurz" [email protected]
Subject: [ui-calendar] Update Calendar when source URL Changes (#79)
Date: Thu, Feb 20, 2014 22:06
to update the events using the id, I need to go do an ajax call to the server to get the new events. I don't have them stored locally.
—
Reply to this email directly or view it on GitHub.
from ui-calendar.
Related Issues (20)
- How to stop draggable event & how to get drag-over cell date while dragging
- creating new event with dragging HOT 1
- Uncaught TypeError: p.push is not a function at Object.<anonymous> (fullcalendar.min.js?v=1515749727232:23) at e (fullcalendar.min.js?v=1515749727232:23) at Object.<anonymous> (fullcalendar.min.js?v=1515749727232:31) at e (fullcalendar.min.js?v=1515749727232:23) at Object.<anonymous> (fullcalendar.min.js?v=1515749727232:23) at e (fullcalendar.min.js?v=1515749727232:23) at Object.<anonymous> (fullcalendar.min.js?v=1515749727232:49) at e (fullcalendar.min.js?v=1515749727232:23) at fullcalendar.min.js?v=1515749727232:23 at fullcalendar.min.js?v=1515749727232:23
- Is this repository abandoned? HOT 3
- The server has not found anything matching the requested URI GET.../fulalclendar.js
- Drag and drop external elements into calendar
- calendar.fullCalendar is not a function HOT 2
- Unable to view the updated events in the Calendar even on Event Sources Updation.
- TypeError: Cannot read property 'clone' of undefined when changing event title
- How do I control the height of the date cells? If I want to reduce the height of each date cell, how do I do it?
- How do I set the default month for the calendar? By default, it sets it to the current month. HOT 1
- Events are not rendering correctly
- Issue in Calendar
- Event Render not working while appending html in ionic 3
- AngularJS UI-calendar eventSources not updated HOT 3
- Filter date
- calendar gets updated on month change when used in ng-repeat
- Can't drop to some dates HOT 1
- Error when using new fullcalendar version 3.10.2
- Event disappear after switching months and after hitting today
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ui-calendar.