Class TJSSettingsSwap
Hierarchy
- SvelteComponent<
TJSSettingsSwap.Props,
TJSSettingsSwap.Events,
TJSSettingsSwap.Slots,
>- TJSSettingsSwap (View Summary)
Indexable
- [prop: string]: any
Index
Constructors
Methods
Constructors
constructor
- new TJSSettingsSwap(
options: ComponentConstructorOptions<TJSSettingsSwap.Props>,
): TJSSettingsSwap Parameters
- options: ComponentConstructorOptions<TJSSettingsSwap.Props>
Returns TJSSettingsSwap
Methods
$destroy
$on
- $on<K extends string>(
type: K,
callback: (e: CustomEvent<any>) => void,
): () => void Type Parameters
Parameters
- type: K
- callback: (e: CustomEvent<any>) => void
Returns () => void
$set
- $set(props: Partial<TJSSettingsSwap.Props>): void
Parameters
- props: Partial<TJSSettingsSwap.Props>
Returns void
TJSSettingsSwap
provides a convenience component to swap a main slotted component withTJSSettingsEdit
.The component props are the same and documented in TJSSettingsEdit. The only difference is that to support slot forwarding for
TJSSettingsEdit
is that you define thesettings-header
andsettings-footer
slots inside theTJSSettingsSwap
content.Controlling the swap state is accessible from
TJSGameSettingsWithUI.uiControl.showSettings
accessor (get or set). This allows for instance the creation of an app header button to swap between the main slotted component andTJSSettingsEdit
.