The tag() method returns a custom event field using its name.
DayPilot.Event.tag(fieldName)fieldName (string) - name of one of the fields specified in tags.
The method returns the custom field value associated with the current event.
const category = e.tag("category");