Settings
A class to manage the settings
import { Settings } from "@schukai/monster/source/components/datatable/filter/settings.mjs";Purpose and scope
A class to manage the settings
This page documents the Settings class. Use the Usage examples for a working starting point and the API tab for the complete public contract.
When to use it
Use this module when its focused responsibility matches the surrounding workflow. Prefer its public options, properties, methods and events over reaching into rendered internals.
Persisted Filter Settings
in diesem beispiel schalten wir die speicherfähigkeit für die filterung ein. dazu muss man das html attribut data-monster-option-features-storedConfig auf true setzen. und die ID des Tabs Controls in das Attribut data-monster-option-storedConfig-selector setzen.
Javascript
//import '@schukai/monster/source/components/form/input-group.mjs';<script type="module">//import '@schukai/monster/source/components/form/input-group.mjs';</script>HTML
<monster-tabs>
<monster-datatable-filter>
<!-- the attribute "data-monster-label" is used to define the label for the select element -->
<!-- The text node inside the label is the label for the filter element -->
<label data-monster-label="Input">Input Filter
<monster-filter-input></monster-filter-input>
</label>
<!-- the next filter is hidden, because the attribute "slot" and the value "hidden" are used -->
<label slot="hidden" data-monster-label="Date Range">Date Range Filter
<monster-filter-date-range></monster-filter-date-range>
</label>
</monster-datatable-filter>
</monster-tabs>Stylesheet
/** no additional stylesheet is defined **/Advanced Filter Settings
In this example, we link the filter to a data source.
Javascript
//import '@schukai/monster/source/components/datatable/filter.mjs';<script type="module">//import '@schukai/monster/source/components/datatable/filter.mjs';</script>HTML
<monster-datatable-filter>
<!-- the attribute "data-monster-label" is used to define the label for the select element -->
<!-- The text node inside the label is the label for the filter element -->
<label data-monster-label="Input">Input Filter
<monster-filter-input></monster-filter-input>
</label>
<!-- the next filter is hidden, because the attribute "slot" and the value "hidden" are used -->
<label slot="hidden" data-monster-label="Date Range">Date Range Filter
<monster-filter-date-range></monster-filter-date-range>
</label>
</monster-datatable-filter>Stylesheet
/** no additional stylesheet is defined **/Component Design
Settings coordinates stored filter definitions and their editable configuration.
Composition
The class is used by the datatable filter workflow rather than as a standalone custom element. Persist settings through its public model and host integration.
HTML Structure
Settings is not registered as a custom element.JavaScript Initialization
import { Settings } from "@schukai/monster/source/components/datatable/filter/settings.mjs";Exported
SettingsDerived from
BaseOptions
The Options listed in this section are defined directly within the class. This class is derived from several parent classes, including the CustomElement class. Therefore, it inherits Options from these parent classes. If you cannot find a specific Options in this list, we recommend consulting the documentation of the Base.
- since
- deprecated
Properties and Attributes
The Properties and Attributes listed in this section are defined directly within the class. This class is derived from several parent classes, including the CustomElement class and ultimately from HTMLElement. Therefore, it inherits Properties and Attributes from these parent classes. If you cannot find a specific Properties and Attributes in this list, we recommend consulting the documentation of the Base.
data-monster-options: Sets the configuration options for the collapse component when used as an HTML attribute.data-monster-option-[name]: Sets the value of the configuration option[name]for the collapse component when used as an HTML attribute.
Methods
The methods listed in this section are defined directly within the class. This class is derived from several parent classes, including the CustomElement class and ultimately from HTMLElement. Therefore, it inherits methods from these parent classes. If you cannot find a specific method in this list, we recommend consulting the documentation of the Base.
Constructor
constructor()Structural methods
get(value)value: value
- {*}
getOptions()- {Array}
getSelected()- {Array}
set(option)option{object}: Value, label and visibility settings.
- {Settings}
setOptions(options)options: options
- {Settings}
Events
This component does not fire any public events. It may fire events that are inherited from its parent classes.