ui.Scroll

ui.Scroll

class

Vertical list that scrolls instead of overflowing

Fields

NameTypeDescription
gap number Space kept between children in slate units

Functions

ui.Scroll:add(child)

Append a child widget (must not already be parented)

child ui.Widget Widget to append

ui.Scroll:clear()

Drop every child, leaving the list empty

ui.Scroll:to_start()

Scroll back to the first child

Inherited from ui.Widget (1)
  • visible Hidden widgets keep their place in the tree and take no input
Inherited from Object (5)