@vttforge/core / SheetRegistration
Interface: SheetRegistration ​
Properties ​
canBeDefault? ​
readonlyoptionalcanBeDefault?:boolean
Allow a user to choose this sheet as their default. Defaults to true.
canConfigure? ​
readonlyoptionalcanConfigure?:boolean
Offer this sheet in the sheet configuration dialog. Defaults to true.
document ​
readonlydocument:SheetDocumentKind
The document the sheet is for.
id ​
readonlyid:string
Stable name for this sheet, unique within the package.
It becomes the second half of the key Foundry persists, so treat it the way you treat a database column name: pick it once and keep it. Renaming it later loses the sheet choice of every document already using it.
label? ​
readonlyoptionallabel?:string
Localization key for the name shown in the sheet picker.
makeDefault? ​
readonlyoptionalmakeDefault?:boolean
Make this the default sheet for the listed types.
sheet ​
readonlysheet:AnyClass
The sheet class.
types? ​
readonlyoptionaltypes?: readonlystring[]
Document sub-types the sheet applies to. Omit to offer it for every type.
A module registering a sheet for its own sub-type must pass the prefixed key: moduleSubType(id, 'pdf'), not 'pdf'.