UI_ContentEditorSlots typedef
UI_ContentEditorSlots = AnonymousType_3276421
Content editor slot configuration - confirmations and warnings during content editing sessions.
These slots control the dialog and warning UI that appears during content
editing.
Use getInstance()?.saveContentEditingSession() and
getInstance()?.discardContentEditingSession()
to programmatically control content editing from custom UI.
Example:
Save and exit automatically instead of showing a confirmation:
```ts
NutrientViewer.load({
ui: {
contentEditor: {
exitConfirm: { autoResolve: "accept" },
},
},
});
Example:
```ts
Skip the document download confirmation and download automatically
(the prompt only appears in Server mode / Document Engine sessions):
```ts
NutrientViewer.load({
ui: {
contentEditor: {
downloadConfirm: { autoResolve: "accept" },
},
},
});
Implementation
typedef UI_ContentEditorSlots = AnonymousType_3276421;