Heading to the Printing United trade show? Schedule a meeting with our representatives.

getSelectedItems Method

Callable

  • getSelectedItems( ) : Promise < Item [] >
  • Returns an array of selected design elements.

    example
    editor.getSelectedItems()
         .then(function (items) {
             if (items.length)
                 items.forEach(function (item) {
                     console.log(item.name);
                 });
             else
                 console.log("There are no selected items.");
         });
    

    Returns Promise < Item [] >