Skip to main content

Notification Component

Component Available
ServerNo
ClientYes

This component allows displaying toast messages to the client

Required Attributes


Server

  • None

Client

  • None

Methods


Server

This component has no server methods.

Client

Clear

  • Parameters: None
  • Return: None
  • Description: Clear all notifications

SendAlert

  • Parameters: message: string, duration?: number
  • Return: None
  • Description: Shows a information notification for the provided duration

SendError

  • Parameters: message: string, duration?: number
  • Return: None
  • Description: Shows a error notification for the provided duration

Custom

  • Parameters: message: string, duration?: number, style: table
  • Return: None
  • Description: Shows a notification with custom styling, provided table should be using the key as the CSS tag and the value as the CSS value.

Events


Server

No server events are fired from this component.

Client

No client events are fired from this component.