Export select data to calendar format (ics or ical)

Export select data to calendar format (ics or ical)

oblaobla Posts: 4Questions: 1Answers: 0

Hi, I have a datables for upcoming concerts events, and i would like to offer the possibility to export select date to an ical or ics file, do you think it's possible ? Can i combine databales.js with ics.js for example (https://github.com/nwcell/ics.js ?

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Yep, it seems very possible - this post here looks like it could do it. You would use row().data() (or the DOM as in their example) to get the data.

    Colin

  • oblaobla Posts: 4Questions: 1Answers: 0
    edited December 2021

    Thanks Colin ! Perhaps cell().data() is a better way if i want to retrieve the value of each cell separately ?

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Possibly, depending on your logic. They'll both get the data, one for the row, one for the cell, so both will deliver, it depends on the efficiency within your code,

    Colin

Sign In or Register to comment.