| Issue 86: | remove events by some parameter that got from the JSON | |
| 2 people starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
I want to know how can I remove events by some parameters that I created
before. For example in my JSON I got:
[{"id":"1","title":"","categoria_id":"1","start":"2009-08-30","fecha":"2009-08-30","className":"color_evento_conciertos"},{"id":"2","title":"","categoria_id":"2","start":"2009-08-30","fecha":"2009-08-30","className":"color_evento_cursos"},{"id":"3","title":"","categoria_id":"1","start":"2009-08-29","fecha":"2009-08-29","className":"color_evento_conciertos"}].
Then when I click in a button, I want to remove the events that contains
the categoria_id = 1.
I have:
$('#cat_conciertos').click(function() {
$('#calendar').fullCalendar('removeEvent',{categoria_id:2});
});
But doesn't work.
Also, good job with the plugin, is amazing, I'm using it, here:
http://www.rhnexos.com.mx/eventos
It's on development.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
jfullcalendar :1.2.1
firefox & IE7.
Please provide any additional information below.
Sep 21, 2009
just released 1.3. this can be achieved via the clientEvents method w/ a filter function (http://arshaw.com/fullcalendar/docs/methods.php) let me know if any troubles. thanks.
Status:
Fixed
Aug 13, 2013
(No comment was entered for this change.)
Status:
Implemented
Aug 13, 2013
(No comment was entered for this change.)
Status:
Released
|
|
| ► Sign in to add a comment |
i agree, this is much needed for the api. i've already coded it, still needs to be tested. will be in 1.3, out in a few days. you will be able to provide a filter function like this: $('#calendar').fullCalendar('removeEvents', function(event) { return event.categoria_id == 2; }); thanks lucks17