ScrollViewHandle
Defined in: ui/widgets/scroll-view.ts:48
Properties
Section titled “Properties”content
Section titled “content”
readonlycontent:number
Defined in: ui/widgets/scroll-view.ts:52
The scrolling content frame — parent your content here.
entity
Section titled “entity”
readonlyentity:number
Defined in: ui/widgets/scroll-view.ts:50
The viewport entity (the clipped window; add it to your UI tree).
scroll
Section titled “scroll”
readonlyscroll:ScrollContainer
Defined in: ui/widgets/scroll-view.ts:54
The scroll model (escape hatch: scrollBy, onScroll, …).
Methods
Section titled “Methods”dispose()
Section titled “dispose()”dispose():
void
Defined in: ui/widgets/scroll-view.ts:58
Returns
Section titled “Returns”void
scrollTo()
Section titled “scrollTo()”scrollTo(
offset):void
Defined in: ui/widgets/scroll-view.ts:55
Parameters
Section titled “Parameters”offset
Section titled “offset”Returns
Section titled “Returns”void
setContentSize()
Section titled “setContentSize()”setContentSize(
size):void
Defined in: ui/widgets/scroll-view.ts:57
Update the scroll range after content changes size.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void