Class TJSSettingsSwap
Hierarchy
- SvelteComponent<
TJSSettingsSwap.Props,
TJSSettingsSwap.Events,
TJSSettingsSwap.Slots,
>- TJSSettingsSwap (View Summary)
Indexable
- [prop: string]: any
Index
Constructors
Methods
Constructors
constructor
Parameters
- options: ComponentConstructorOptions<TJSSettingsSwap.Props>
Returns TJSSettingsSwap
Methods
$destroy
Returns void
$on
Type Parameters
- K extends string
Parameters
- type: K
- callback: (e: CustomEvent<any>) => void
Returns () => void
TJSSettingsSwapprovides 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
TJSSettingsEditis that you define thesettings-headerandsettings-footerslots inside theTJSSettingsSwapcontent.Controlling the swap state is accessible from
TJSGameSettingsWithUI.uiControl.showSettingsaccessor (get or set). This allows for instance the creation of an app header button to swap between the main slotted component andTJSSettingsEdit.