ListElement
-
class
ui.list.ListElement() Renders a selectable element row inside
hoops-list.Examples
<hoops-list-element key="12" name="Part 12" selected></hoops-list-element>
Custom Element
hoops-list-elementAttributes
key
Unique identifier for the list elementname
Displayed element nameselected
Indicates whether the row is selectedSlots
- Slot for custom trailing row content
Events
hoops-list-element-click
Emitted when the list element is clickedSince
2025.7.0
Constructors
-
ui.list.ListElement.constructor() - ListElement():
ListElementReturns:
ListElement
Properties
-
ui.list.ListElement.key - key: number
The id of the element in the list.
-
ui.list.ListElement.name - name: string
The displayed name of the element in the list.
-
ui.list.ListElement.selected - selected: boolean
Whether the element is selected or not
-
ui.list.ListElement.list optional
list:ContextWrapperThe context of the hoops-list