selectedItem

stores an array of the selected item objects

array selectedItem;

Example

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

Related samples

Details

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

[
  {
    $css: "folder",
    date: new Date(),
    id: "/Photos",
    size: 4096,
    type: "folder",
    value: "Photos",
  },
  // other objects if any
]
See also
Back to top