SheetXL - v1.0.2
    Preparing search index...

    Function useNotifier

    • Returns the notifier for showing the user messages, dialogs and busy indicators.

      Returns IReactNotifier

      Every method is always present. With no ReactNotifierProvider above, messages, dialogs and busy indicators show nothing (a dialog resolves as if cancelled), and log, warn, error and showError go to the global Notifier.

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

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

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