Toast

Toast.

Interface: IToast.

See the parameters of this component in storybook.

Toast

To change the toast type, use ToastType (success, error, warning, info).

Example

import {type IToast, ToastType} from "@onlyoffice/docspace-plugin-sdk"

const toast: IToast = {
  type: ToastType.error,
  title: "Wrong file format",
}

Get Help

  • If you have any questions about ONLYOFFICE DocSpace, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).