javascript - Fullcalendar event filter with checkboxes -
i'm trying filter events checkboxes. tried (based on question/answer: https://stackoverflow.com/a/29993265/4876591)
eventrender: function(event, element) { return ['all', event.state].indexof(function(){ $('input[type="checkbox"]').each(function() { return $(this).val() }); }) >= 0; }
on change event:
$('input[type="checkbox"]').on('change', function(){ $('#mycalendar').fullcalendar('rerenderevents'); }
html:
<input type="checkbox" name="estado" value="all">all <input type="checkbox" name="estado" value="0">open <input type="checkbox" name="estado" value="1">close
any advice problem? in advance
Comments
Post a Comment