Add placeholder tab template
This commit is contained in:
parent
6ccc10f897
commit
60d29adc3e
2 changed files with 13 additions and 2 deletions
|
|
@ -48,7 +48,9 @@ export class PlayerSheet extends
|
|||
primaryAttributes: { template: filePath(`templates/PlayerSheet/primary-attributes.hbs`) },
|
||||
tabs: { template: filePath(`templates/generic/tabs.hbs`) },
|
||||
content: { template: filePath(`templates/PlayerSheet/content.hbs`) },
|
||||
attributeTab: {},
|
||||
attributeTab: {
|
||||
template: filePath(`templates/PlayerSheet/attributes-tab.hbs`),
|
||||
},
|
||||
items: {
|
||||
template: filePath(`templates/PlayerSheet/item-lists.hbs`),
|
||||
scrollable: [``],
|
||||
|
|
@ -302,7 +304,9 @@ export class PlayerSheet extends
|
|||
ctx.attrs = filtered;
|
||||
};
|
||||
|
||||
async _prepareAttributesTab(ctx) {};
|
||||
async _prepareAttributesTab(ctx) {
|
||||
ctx.tabActive = this.tabGroups.primary === `attributes`;
|
||||
};
|
||||
|
||||
async _prepareTabList(ctx) {
|
||||
ctx.tabs = await this._prepareTabs(`primary`);
|
||||
|
|
|
|||
7
templates/PlayerSheet/attributes-tab.hbs
Normal file
7
templates/PlayerSheet/attributes-tab.hbs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<div
|
||||
class="tab attributes-tab {{ifThen tabActive "active" ""}}"
|
||||
data-group="primary"
|
||||
data-tab="attributes"
|
||||
>
|
||||
Attribute Tab
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue