abstract class webfwt::WebList

sys::Obj
  fwt::Widget
    fwt::Pane
      webfwt::WebList

@Js

Source

WebList displays a set of objects as a List.

index

virtual Int? index(Obj item)

Source

Get the index for the given item. By default, items are matched to indices by Obj.equals.

items

Obj[] items

Source

Items to display for this list. Defaults to an empty list.

multi

Bool multi := false

Source

Enable multiple selection. Defaults to false for single selection.

onAction

EventListeners onAction()

Source

Callback when an item is double-clicked.

onBeforeSelect

EventListeners onBeforeSelect()

Source

Callback before an item is selected. To cancel the following selection event, set Event.data to the Str "cancel"

onLayout

virtual override Void onLayout()

Source

onSelect

EventListeners onSelect()

Source

Callback when an item is selected.

prefSize

virtual override Size prefSize(Hints hints := Hints.defVal)

Source

prefh

Int? prefh := null

Source

If non-null, reported for preferred width.

prefw

Int? prefw := null

Source

If non-null, reported for preferred width.

selected

Obj[] selected := Obj[,]

Source

Selected item, or null if no selection.

selectedIndexes

Int[] selectedIndexes := Int[,]

Source

Index of selected items, or empty list if no selection.