Options
All
  • Public
  • Public/Protected
  • All
Menu

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]);

Hierarchy

  • ICalCategory

Index

Constructors

Methods

Constructors

constructor

Methods

name

  • name(): null | string
  • name(name: null | string): ICalCategory

toJSON

  • toJSON(): ICalCategoryInternalData
  • Return a shallow copy of the category's options for JSON stringification. Can be used for persistence.

    since

    0.2.4

    Returns ICalCategoryInternalData

toString

  • toString(): string
  • Return generated category name as a string.

    console.log(category.toString());
    

    Returns string

Legend

  • Constructor
  • Method
  • Property

Generated using TypeDoc