¶
luxe
API (2025.1.2
)¶
luxe: selection
module¶
Selection¶
import "luxe: selection" for Selection
no docs found
- CHANGE
- DESELECT
- SELECT
- INVALID
- PRE_CHANGE
- id
- events
- selected
- any()
- is_selected(value:
Any
) - is_selected(value:
Any
, non_transient_only:Bool
) - is_invalid_selection(value:
Any
) - count
- first
- last
- transient
- new(context:
String
) - destroy()
- emit(kind:
Any
, items:List
) - start_transient(change:
Fn
) - end_transient()
- sync(other:
Selection
) - unsync(other:
Selection
) - deselect()
- deselect(item:
Any
) - deselect_items(items:
List
) - select(item:
Any
) - select(item:
Any
, plural:Bool
) - select_items(items:
List
) - select_items(items:
List
, plural:Bool
) - toggle(item:
Any
) - notify()
- set_invalid_handler(fn:
Fn
)
unknown
no docs found
unknown
no docs found
unknown
no docs found
unknown
no docs found
unknown
no docs found
String
no docs found
Events
no docs found
List
no docs found
Bool
no docs found
Any
)
¶Bool
no docs found
Any
, non_transient_only: Bool
)
¶Bool
no docs found
Any
)
¶String
returns a string as a reason if not able to select, otherwise returns null
Num
no docs found
Any
no docs found
Any
no docs found
Bool
no docs found
String
)
¶Selection
no docs found
unknown
no docs found
Any
, items: List
)
¶unknown
no docs found
Fn
)
¶unknown
Start a transient selection where changes will be stored separately and notifed of a change directly
None
End a transient selection, read .selected before calling to capture the transient selection
Selection
)
¶unknown
Sync selection with another instance.
Selection
)
¶unknown
Stop syncing selection.
unknown
Clear the selection. emits
DESELECT
with a list of items deselected
Any
)
¶unknown
Deselect the given item. emits
DESELECT
with a list containing the item
List
)
¶unknown
Deselect the given items. emits
DESELECT
with a list containing the items (ones that were actually selected)
Any
)
¶unknown
select the given item. emits
SELECT
with a list containing the item
Any
, plural: Bool
)
¶unknown
Select the given item, and if plural is true, the item is added to the existing selection. If not, the selection is cleared and only this item is selected afterward. Emits
SELECT
with a list containing the item
List
)
¶None
Select multiple items. Replaces the current selection. Emits
SELECT
with a list containing the items
List
, plural: Bool
)
¶None
Select the given items, and if plural is true, the items are added to the existing selection. If not, the selection is cleared and only the items are selected afterward. Emits
SELECT
with a list containing the items
Any
)
¶unknown
no docs found
None
send a change event for the selection
Fn
)
¶unknown
no docs found