Show Toast

Display a toast message to the client

Displays a toast message to the client.

Parameter

ParameterTypeDescription
messageString | ObjectThe message to display. An object is serialized to JSON before display.

Syntax

kf.client.showInfo(message).then(() => {...})

or

await kf.client.showInfo(message);

Returns

Returns a promise that resolves once the toast is shown.

Example

To notify the client that a record was saved.

await kf.client.showInfo("Record saved successfully");

On this page