Class ICalCategory

Usually you get an ICalCategory object like this:

import ical from 'ical-generator';
const calendar = ical();
const event = calendar.createEvent();
const category = event.createCategory();

You can also use the ICalCategory object directly:

import ical, {ICalCategory} from 'ical-generator';
const category = new ICalCategory();
event.categories([category]);

Constructors

Methods

Constructors

Methods

  • Get the category name

    Returns string

    0.3.0

  • Set the category name

    Parameters

    • name: string

    Returns this

    0.3.0

  • Return generated category name as a string.

    console.log(category.toString());
    

    Returns string