ui.Scroll
classVertical list that scrolls instead of overflowing
Fields
| Name | Type | Description |
|---|---|---|
| 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)
- name Object name
- Object.find(name) Find an already loaded object by name
- Object.cast(object) Trying to cast Object into Object
- Object:get_class() Class of this object
- Object.get_class() Return Object class object