ListStatus
elements.ListStatus (Abstract)
Abstract wrapper for tracking list view state changes and item operations.
ListStatus provides a type-safe interface for monitoring changes in a ListView through a WindowItem. It tracks various state changes like selection changes, item list modifications, and item operations (trash, lock, unlock, duplicate).
This abstract type implements implicit conversion to Bool, returning true when any changes have occurred (either selection or items changed).
Features:
- Tracks selection changes
- Monitors item list modifications
- Provides access to lists of items by operation type
- Efficient change detection
- Read-only access to change arrays
Example usage:
var status:ListStatus = windowItem;
if (status.selectedChanged) {
// Handle selection change
}
if (status.itemsChanged) {
// Handle item list changes
}
var trashedItems = status.trashedItems;
See: WindowItem, ListView
Type Conversions
From:
[elements.WindowItem](/api-docs/clay-native/elements/WindowItem/)
To:
[Bool](/api-docs/clay-native/Bool/)