Skip to main content

chart.listSelectedObjects()

Type: function()
Returns: Promise<Object[]>

Asynchronously lists all selected objects with their properties. The promise gets resolved to an array of selected objects.

const selectedObjects = await chart.listSelectedObjects()

The objects contain many useful properties, such as:

  • The object's category
  • Optional extraData
  • The object's label (e.g. "A-1")
  • A breakdown of the object's label components: {own: "1", parent: "A", section: null, displayedLabel: "A-1"}
  • An isOrphan flag
  • The objectType (e.g. "Seat")
  • The object's status (e.g. "booked")