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
Parameters:
| Name | Type | Description |
|---|---|---|
source | object |
Returns:
- Type:
- object
(static) deleteLibraryDisplaySettings(libraryId) → {void}
Delete all display settings for a library
Parameters:
| Name | Type | Description |
|---|---|---|
libraryId | dynamic |
Returns:
- 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
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
libraryId | dynamic | |||
key | dynamic | |||
defaultValue | dynamic | <optional> | invalid |
Returns:
- 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" }
Parameters:
| Name | Type | Description |
|---|---|---|
libraryId | dynamic |
Returns:
- Type:
- object
(static) setLibraryDisplaySetting(libraryId, key, value) → {void}
Set library display setting (updates node + persists to registry)
Parameters:
| Name | Type | Description |
|---|---|---|
libraryId | dynamic | |
key | dynamic | |
value | dynamic |
Returns:
- Type:
- void