getItem

returns a file object

object getItem(string id);
idstringthe id of a file
objectthe object of a file

Example

// getting the file id by the index
var id = vault.data.getId(1); // -> "img2"
// getting the file object by the id
var file = vault.data.getItem("img2");

See also
Back to top