Seed Bible extension API (v1.18.0) / seed-bible/components / PortalComponentProps
Interface: PortalComponentProps
Properties
inst
inst: string;The instance identifier for the portal's content.
onMessage?
onMessage?: (message: unknown) => void;Called with each message the portal's CasualOS instance sends via os.sendEmbedMessage.
Parameters
| Parameter | Type |
|---|---|
message | unknown |
Returns
void
pattern
pattern: CasualOSPattern | null;The pattern that should be loaded in the portal. When null, the pattern/patternAux query param is omitted entirely rather than guessing a default pattern name that might not exist.
portal
portal: string;Grid/map portal identifier to load in the iframe.
portalType
portalType: "grid" | "map";Which CasualOS portal to open.
query?
query?: Record<string, string> | null;Query parameters for the portal's content.