Skip to main content

Documentation Index

Fetch the complete documentation index at: https://rive-accessibility.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Provides access to hierarchical data and its associated ViewModel.

Methods

parent

parent() -> DataContext?
Returns the parent DataContext, if one exists.
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

viewModel

viewModel() -> ViewModel?
Returns the ViewModel associated with this context.
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