selectedItem

stores an array of the selected item objects

array selectedItem;

Example

// stores objects of the selected items
 const selected = $$("dm").getState().selectedItem;

Related samples

Details

The property stores array of the selected item object(s) with the following structure:

[
  {
    $ext: "txt",
    date: new Date(),
    id: "/lasagna.txt",
    size: 1784,
    type: "code",
    value: "lasagna.txt",
  },
  // other objects if any
]
See also
Back to top