OmniDataEditor API
Preparing search index...
@omnidataeditor/dom
DomPresentationContext
Interface DomPresentationContext<T>
interface
DomPresentationContext
<
T
>
{
capabilities
:
PresentationCapabilities
<
T
>
;
signal
?:
AbortSignal
;
dispatch
(
command
:
EditorCommand
)
:
CommandOutcome
;
getSnapshot
()
:
SessionSnapshot
<
T
>
;
submit
()
:
Promise
<
SubmitOutcome
<
T
>
>
;
subscribe
(
listener
:
SessionListener
<
T
>
)
:
Unsubscribe
;
validate
()
:
Promise
<
ValidationReport
>
;
}
Type Parameters
T
Hierarchy (
View Summary
)
PresentationContext
<
T
>
DomPresentationContext
Index
Properties
capabilities
signal?
Methods
dispatch
get
Snapshot
submit
subscribe
validate
Properties
Readonly
capabilities
capabilities
:
PresentationCapabilities
<
T
>
Optional
Readonly
signal
signal
?:
AbortSignal
Methods
dispatch
dispatch
(
command
:
EditorCommand
)
:
CommandOutcome
Parameters
command
:
EditorCommand
Returns
CommandOutcome
get
Snapshot
getSnapshot
()
:
SessionSnapshot
<
T
>
Returns
SessionSnapshot
<
T
>
submit
submit
()
:
Promise
<
SubmitOutcome
<
T
>
>
Returns
Promise
<
SubmitOutcome
<
T
>
>
subscribe
subscribe
(
listener
:
SessionListener
<
T
>
)
:
Unsubscribe
Parameters
listener
:
SessionListener
<
T
>
Returns
Unsubscribe
validate
validate
()
:
Promise
<
ValidationReport
>
Returns
Promise
<
ValidationReport
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
capabilities
signal
Methods
dispatch
get
Snapshot
submit
subscribe
validate
OmniDataEditor API
Loading...