DHTMLX Docs & Samples Explorer

Returns the ID of the previous item ( an item with the index == current - 1).

var prev_id = data.previous(id);

Parameters:

  • id - the id of the item in question