@mermaid-editor-sdk/ui / SelectionEditorProps
Interface: SelectionEditorProps
Defined in: package/ui/src/ui/components/SelectionEditor.tsx:97
Properties
dispatch
readonlydispatch: (action) =>string|undefined
Defined in: package/ui/src/ui/components/SelectionEditor.tsx:107
Applies a selection edit and returns the new source when changed.
Parameters
| Parameter | Type |
|---|---|
action | DiagramAction |
Returns
string | undefined
dispatchPreservingSelection?
readonlyoptionaldispatchPreservingSelection?: (action) =>string|undefined
Defined in: package/ui/src/ui/components/SelectionEditor.tsx:111
Optional dispatch function that preserves selection after an edit.
Parameters
| Parameter | Type |
|---|---|
action | DiagramAction |
Returns
string | undefined
Default
dispatch
model
readonlymodel:RendererModel
Defined in: package/ui/src/ui/components/SelectionEditor.tsx:105
Current diagram model used to populate editable fields.
onClose
readonlyonClose: () =>void
Defined in: package/ui/src/ui/components/SelectionEditor.tsx:101
Closes the dialog.
Returns
void
onDelete?
readonlyoptionalonDelete?: (selection,nextSource) =>void|Promise<void>
Defined in: package/ui/src/ui/components/SelectionEditor.tsx:113
Called after a successful removal.
Parameters
| Parameter | Type |
|---|---|
selection | EditorSelection |
nextSource | string |
Returns
void | Promise<void>
open
readonlyopen:boolean
Defined in: package/ui/src/ui/components/SelectionEditor.tsx:99
Whether the selection editing dialog is open.
selection
readonlyselection:EditorSelection|null
Defined in: package/ui/src/ui/components/SelectionEditor.tsx:103
Selected node, relationship, or subgraph; null when none is selected.