Skip to main content

Module: ui/modal

Functions

open

open(messageOptions): Promise<void>

Parameters

NameType
messageOptionsMessageDataType<"uiModalOpen">

Returns

Promise<void>

Defined in

packages/admin-sdk/src/channel.ts:446


close

close(messageOptions): Promise<void>

Parameters

NameType
messageOptionsMessageDataType<"uiModalClose">

Returns

Promise<void>

Defined in

packages/admin-sdk/src/channel.ts:446

Type Aliases

uiModalOpen

Ƭ uiModalOpen: Object

Type declaration

NameType
responseTypevoid
titlestring
locationIdstring
variant?"default" | "small" | "large" | "full"
showHeader?boolean
showFooter?boolean
closable?boolean
buttons?buttonProps[]

Defined in

packages/admin-sdk/src/ui/modal/index.ts:6


uiModalClose

Ƭ uiModalClose: Object

Type declaration

NameType
responseTypevoid
locationIdstring

Defined in

packages/admin-sdk/src/ui/modal/index.ts:18


buttonProps

Ƭ buttonProps: Object

Type declaration

NameType
method() => void
labelstring
variant?"primary" | "ghost" | "danger" | "ghost-danger" | "contrast" | "context"
size?"x-small" | "small" | "large"
square?boolean

Defined in

packages/admin-sdk/src/ui/modal/index.ts:24