Data.MyViewModel.new() creates a fresh instance of the view model named
MyViewModel; pass an instance name to copy an existing instance from the
file. Looking up a name with no matching view model returns nil.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Data.MyViewModel.new() creates a fresh instance of the view model named
MyViewModel; pass an instance name to copy an existing instance from the
file. Looking up a name with no matching view model returns nil.
local button = Data.Button.new()
local label = button:getString('label')
if label then
label.value = 'Play'
end
newnew(instanceName: string?) -> ViewModel
Was this page helpful?