Optional
componentOptional
enabledOptional function to determine whether the tab should be visible when viewing the sheet. When excluded, it defaults to true
.
Optional
getAn optional function that provides the relevant svelte context map and expects the component's ideal context map in return.
Optional
getAn optional function that provides the relevant application context (item sheet context, character sheet context, NPC sheet context, etc.) and expects an object in return. The return value is passed to the svelte component as its props.
Optional
onOptional function which is called each time a change detection cycle occurs on the sheet. This is any time a FormApplication would normally call render()
.
Optional
renderFor svelte-based tabs, the render scheme is set to 'force' and generally ignored.
Optional
tabAn optional array of CSS classes to apply to the tab contents container.
The required static ID associated with a tab.
A tabId
is a unique string of text that identifies your tab.
It needs to be in a format that can be put into an HTML attribute.
The tab ID is always required to register a tab.
A tabId
must be unique to the target sheet. For example,
the character sheet can only have one "my-module-id-my-spellbook-tab" ID,
and the NPC sheet can also only have one "my-module-id-my-spellbook-tab" ID, etc.
Advice for crafting a unique tab ID:
"my-module-id-my-spellbook-tab"
The title to display on the tab. Accepts localization keys and plain text.
An optional override to whether the target tab should use default sheet event listeners.
Defaults to false
.
An optional override to whether the target tab should use default sheet event listeners.
Defaults to false
.
A reference to the
.svelte
component.