Class TJSSettingsEdit
                 
                    
                  Hierarchy
              
              - SvelteComponent<
 TJSSettingsEdit.Props,
 TJSSettingsEdit.Events,
 TJSSettingsEdit.Slots,
 >- TJSSettingsEdit (View Summary)
 
Indexable
- [prop: string]: any
Index
Constructors
Methods
Constructors
constructor
- Parameters- options: ComponentConstructorOptions<TJSSettingsEdit.Props>
 - Returns TJSSettingsEdit
Methods
$destroy
- Returns void
$on
- Type Parameters- K extends string
 - Parameters- type: K
- callback: (e: CustomEvent<any>) => void
 - Returns () => void
TJSSettingsEditprovides the main Svelte component to display and modify settings registered withTJSGameSettingsWithUI. Refer to the documentation inTJSGameSettings.registerandTJSGameSettings.registerAll. Adding custom defined sections is accomplished withTJSGameSettingsWithUI.uiControl.addSection. You must pass an instance ofTJSGameSettingsWithUIas thesettingsprop.Note: to group settings into specific folders instead of a single top level section use the
folderoption when registering settings with TJSGameSettings. Also, please refer to the extra folder options described byTJSGameSettingsWithUI.uiControl.addSection.The other prop
optionsis an object instance defined byTJSSettingsCreateOptions. This allows you to associate aTJSWebStorageinstance that automatically will track open / closed state of any section folders configured along with the scrolling position of the scrollbar.TJSSettingsEditsupports two additional named slotssettings-headerandsettings-footerallowing you to set Svelte components as a fixed header and / or footer to the main scrollable settings content.When
TJSSettingsEditis displayed the UI display data is generated fromTJSGameSettingsWithUI.uiControlautomatically. When theTJSSettingsEditcomponent is destroyed any settings registered for UI display will be checked forrequiresReloadsetting option. If the setting has changed whileTJSSettingsEditis displayed a modal dialog is opened to inform the user that a setting changed that requires reloading.If you need an easy to use slotted component that allows swapping from the main slot and
TJSSettingsEditplease refer to TJSSettingsSwap.CSS Variables
CSS variables available include the following options: