Link to test case: https://jsfiddle.net/BeerusDev/gm10rqp7/519/
Hello!
As of now, everything works like a charm in my footerCallback and api.rows().every() function except for my function updateOutsideCount()
. As the week progresses, the other functions count each "Status" for each Day/Column and dynamically add the count to the list below the table and remain there till the week is over.
The function I listed in the previous paragraph, uses the .isBetween()
moment function to see if the $('#dpicker').val()
is in between the Monday and Friday of the date searched to show previous weeks information. For example, if the user searches 7/21/2021
, the top of the table under the header will change to Week of: 7/19/2021
, and theoretically it should be able to count all of the attendance values for each day in that week. I am trying to create a function to do so, but what I currently have does not execute nor does anything log to the console?