Extension Action
Summary
Extension Actions are built-in UI methods for communicating with users from your extension. They include displaying modal messages, banner notifications, and closing the extension.
Overview
- Show modal messages (success, error, info, warning)
- Show non-blocking banner notifications
- Close the extension with
closeExtension()
Sub-Sections
- Show Message — Modal messages with optional action buttons
- Show Banner Message — Non-blocking banner notifications
Comparison: Show Message vs. Show Banner Message
| Feature | Show Message | Show Banner Message |
|---|---|---|
| Type | Modal dialog | Banner notification |
| Blocking | Yes (requires user action) | No (non-blocking) |
| Buttons | Optional custom buttons | No buttons |
| Best For | Confirmations, errors requiring acknowledgment | Status updates, progress notifications |
| API | SigmaSDK.WRITER.showMessage() | SigmaSDK.WRITER.showBannerMessage() |
Message Types
Both methods support four message types:
"success"— Operation completed successfully"error"— An error occurred"info"— Informational message"warning"— Caution or advisory message
Close Extension
To programmatically close the extension panel:
SigmaSDK.WRITER.closeExtension();
Quick Examples
Modal Message
SigmaSDK.WRITER.showMessage({
type: "success",
title: "Done!",
message: "Your data was saved successfully."
});Banner Notification
SigmaSDK.WRITER.showBannerMessage({
type: "info",
message: "Processing your request..."
});