Notification options

interface IOptions<T> {
    actions?: IAction[];
    autoClose?: number | false;
    data?: T;
    progress?: number;

Type Parameters

  • T extends ReadonlyJSONValue

Hierarchy (view full)


actions?: IAction[]

List of associated actions

autoClose?: number | false

Autoclosing behavior - false (not closing automatically) or number (time in milliseconds before hiding the notification)

Set to zero if you want the notification to be retained in the notification center but not displayed as toast. This is the default behavior.

data?: T

Data associated with a notification

progress?: number

Task progression


This should be a number between 0 (not started) and 1 (completed).