chart.selectObjects()
Type: function()
Returns: Promise<void>
Selects matched objects. The parameter objects
must be an array of strings or an array of objects.
chart.selectObjects(['A-1', 'A-2']);
chart.selectObjects(['A-1', 'A-2'], () => console.log('selection successful'));
chart.selectObjects([{id: 'A-1', ticketType: 'adult'}]);
chart.selectObjects(['General Admission 1', 'General Admission 1']);
chart.selectObjects([{id: 'General Admission 1', ticketType: 'adult', amount: 3}]);
If a String is provided, the objects that match the provided IDs will be selected.
If an array of objects is passed, these objects should have the following structure:
{
id: String, (required)
ticketType: String (optional)
amount: Number (optional)
}
Note that the promise does not resolve to an array of selected objects. Use onObjectSelected for that.