Notice โ€บ (constructor)

Notice.(constructor)

Constructs a new instance of the Notice class

Signature:

constructor(message: string | DocumentFragment, duration?: number);

Parameters

ParameterTypeDescription
messagestring | DocumentFragmentThe message to be displayed, can either be a simple string or a
durationnumber(Optional) Time in milliseconds to show the notice for. If this is 0, the Notice will stay visible until the user manually dismisses it.