Skip to content

Commit

Permalink
feat(calendar): display rrule as human readable text
Browse files Browse the repository at this point in the history
  • Loading branch information
noxilixon committed Aug 28, 2024
1 parent acdc188 commit e2de5d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions assets/js/event.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { datetime, RRule, RRuleSet, rrulestr } from 'rrule'

const rrule_element = document.querySelector("#rrule");
const rrule_object = rrulestr(rrule_element.dataset.rrule)
rrule_element.innerHTML = rrule_object.toText()

0 comments on commit e2de5d8

Please sign in to comment.