selectionCount

From Gracious Gorilla, 3 Weeks ago, written in JavaScript, viewed 381 times.
URL https://paste.scratchbook.ch/view/220cf60c Embed
Download Paste or View Raw
  1.     switch (selectionCount) {
  2.       case 0:
  3.         return 'No items selected';
  4.       case 1:
  5.         return '1 item selected: ' + (this._selection.getSelection()[0] as IDocument).name;
  6.       default:
  7.         return `${selectionCount} items selected`;
  8.     }

Reply to "selectionCount"

Here you can reply to the paste above