Methods
(static) deepCopyDisplaySettings(source) → {object}
Deep copy displaySettings AA structure Creates a new AA reference with all nested library settings copied This ensures observer will detect changes when we reassign to the node field
| Name | Type | Description |
|---|---|---|
source | object |
- Type:
- object
(static) deleteLibraryDisplaySettings(libraryId) → {void}
Delete all display settings for a library
| Name | Type | Description |
|---|---|---|
libraryId | dynamic |
- Type:
- void
(static) getLibraryDisplaySetting(libraryId, key, defaultValueopt) → {dynamic}
Get specific display setting for a library with fallback Returns: Setting value or defaultValue if not found The returned value will be type-cast to match the defaultValue's type
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
libraryId | dynamic | |||
key | dynamic | |||
defaultValue | dynamic | <optional> | invalid |
- Type:
- dynamic
(static) getLibraryDisplaySettings(libraryId) → {object}
Get all display settings for a library Returns: AA with all settings, or empty {} if library not found Example: { sortField: "DateCreated", filter: "Favorites", landing: "Movies" }
| Name | Type | Description |
|---|---|---|
libraryId | dynamic |
- Type:
- object
(static) getLibraryDisplaySettingsBatch(libraryId, keys, defaults) → {object}
Batch get multiple settings at once (performance optimization) keys: Array of setting keys ["sortField", "filter", "landing"] defaults: AA of default values { sortField: "SortName", filter: "All" } Returns: AA with all requested settings
| Name | Type | Description |
|---|---|---|
libraryId | string | |
keys | object | |
defaults | object |
- Type:
- object
(static) setLibraryDisplaySetting(libraryId, key, value) → {void}
Set library display setting (updates node + persists to registry)
| Name | Type | Description |
|---|---|---|
libraryId | dynamic | |
key | dynamic | |
value | dynamic |
- Type:
- void