object:getView()

Type Function
Library widget.*
Return value Table
Revision Release 2024.3703
Keywords widget, scroll view, ScrollViewWidget, getView
See also widget.newScrollView()
ScrollViewWidget

Overview

Returns a reference to the ScrollViewWidget object's view.

Syntax

object:getView()

Example

local scrollView = widget.newScrollView {
    width = 280,
    height = 400,
    left = 100,
    top = 200,
    scrollWidth = 800,
    scrollHeight =  1200
}

local view = scrollView:getView()