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")