Initial
This commit is contained in:
30
resources/app/client-esm/applications/sheets/item-sheet.mjs
Normal file
30
resources/app/client-esm/applications/sheets/item-sheet.mjs
Normal file
@@ -0,0 +1,30 @@
|
||||
import DocumentSheetV2 from "../api/document-sheet.mjs";
|
||||
|
||||
/**
|
||||
* A base class for providing Item Sheet behavior using ApplicationV2.
|
||||
*/
|
||||
export default class ItemSheetV2 extends DocumentSheetV2 {
|
||||
|
||||
/** @inheritDoc */
|
||||
static DEFAULT_OPTIONS = {
|
||||
position: {
|
||||
width: 480
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* The Item document managed by this sheet.
|
||||
* @type {ClientDocument}
|
||||
*/
|
||||
get item() {
|
||||
return this.document;
|
||||
}
|
||||
|
||||
/**
|
||||
* The Actor instance which owns this Item, if any.
|
||||
* @type {Actor|null}
|
||||
*/
|
||||
get actor() {
|
||||
return this.document.actor;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user