@vttforge/types / DocumentSheetV2Members
Interface: DocumentSheetV2Members<TDocument> ​
What a document sheet adds on top of an application.
TDocument is the document this sheet is for. It defaults to the shared document surface, so a sheet that says nothing still reads name, system and update(). Pass your own type to narrow it further.
Extends ​
Type Parameters ​
TDocument ​
TDocument = DocumentMembers
Properties ​
document ​
readonlydocument:TDocument
The document this sheet is for.
element ​
readonlyelement:HTMLElement|undefined
The window's root element once rendered. undefined before that.
Inherited from ​
DocumentSheetV2Members.element
isEditable ​
readonlyisEditable:boolean
Whether the current user may edit this document.
options ​
readonlyoptions:ApplicationConfiguration
The resolved options this instance was constructed with.
Inherited from ​
rendered ​
readonlyrendered:boolean
Whether the window is currently rendered.
Inherited from ​
title ​
readonlytitle:string
The window title, from options.window.title.
Inherited from ​
Methods ​
_onFirstRender() ​
_onFirstRender(
context,options):void
Runs after the first render only.
Parameters ​
context ​
options ​
Returns ​
void
Inherited from ​
ApplicationV2Members._onFirstRender
_onRender() ​
_onRender(
context,options):void
Runs after every render.
Parameters ​
context ​
options ​
Returns ​
void
Inherited from ​
ApplicationV2Members._onRender
_prepareContext() ​
_prepareContext(
options):Promise<ApplicationRenderContext>
Build the render context.
Parameters ​
options ​
Returns ​
Promise<ApplicationRenderContext>
Inherited from ​
ApplicationV2Members._prepareContext
_preRender() ​
_preRender(
context,options):Promise<void>
Runs after _prepareContext and before the frame renders. New in v14.
Parameters ​
context ​
options ​
Returns ​
Promise<void>
Inherited from ​
ApplicationV2Members._preRender
attachWindow() ​
attachWindow():
void
Returns ​
void
Inherited from ​
ApplicationV2Members.attachWindow
close() ​
close(
options?):Promise<DocumentSheetV2Members<TDocument>>
Close the window.
Parameters ​
options? ​
Record<string, unknown>
Returns ​
Promise<DocumentSheetV2Members<TDocument>>
Inherited from ​
detachWindow() ​
detachWindow():
void
Move the window into its own browser window. New in v14.
Returns ​
void
Inherited from ​
ApplicationV2Members.detachWindow
render() ​
render(
options?,_options?):Promise<DocumentSheetV2Members<TDocument>>
Render the application. Resolves when the render completes.
Parameters ​
options? ​
boolean | ApplicationRenderOptions
_options? ​
Returns ​
Promise<DocumentSheetV2Members<TDocument>>