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-element

Attributes

key

Unique identifier for the list element

name

Displayed element name

selected

Indicates whether the row is selected

Slots

- Slot for custom trailing row content

Events

hoops-list-element-click

Emitted when the list element is clicked

Since

2025.7.0

Index

Constructors

Properties

Constructors

ui.list.ListElement.constructor()
ListElement(): ListElement

Returns: 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

The context of the hoops-list