SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Function useNotifier

    • Hook to access the notification system. Uses the notifier from the nearest NotifierProvider, or falls back to the default ReactNotifier singleton if no provider is found.

      Returns IReactNotifier

      The notification interface

      function MyComponent() {
      const notifier = useNotifier();

      const handleClick = () => {
      notifier.showMessage('Hello World!', { type: NotifierType.Success });
      };

      return <button onClick={handleClick}>Show INotifier</button>;
      }