Documentationcurrent version
Help us improve the docs by fixing typos and proposing enhancements.

Nikita

Metadata "index"

The index metadata indicates the index of an action relative to its sibling actions in the Nikita session tree.

  • Type: number
  • Read-only

Usage

Its value is accessed inside the action handler as the metadata.index property.

nikita
// Call an action
.call(function({metadata: {index}}) {
  console.info(index)
  // Print the value `0`
})
Edit on GitHub
Navigate
About

Nikita is an open source project hosted on GitHub and developed by Adaltas.