Canvas Toolkit
← Class index

CEvent

Events

Base class for all Canvas Toolkit events.

import { CEvent } from "canvas-toolkit-lib";

Declared members

constructor(type: CEventType);

Creates an event of the specified type. @param type Event type.

type(): CEventType;

Returns the event type.

isAccepted(): boolean;

Returns whether the event is accepted.

accept(): void;

Marks the event as accepted.

ignore(): void;

Marks the event as ignored.