Interfaces
DataContext
Provides access to hierarchical data and its associated ViewModel.
Returns the parent DataContext, if one exists.
Returns the ViewModel associated with this context.
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
parentparent() -> DataContext?
function init(self: MyNode, context: Context): boolean
local dc = context:dataContext()
if dc then
local parentDC = dc:parent()
local vm = dc:viewModel()
end
return true
end
viewModelviewModel() -> ViewModel?
function init(self: MyNode, context: Context): boolean
local dc = context:dataContext()
if dc then
local parentDC = dc:parent()
local vm = dc:viewModel()
end
return true
end
Was this page helpful?