getPrevId

returns the ID of an item that is before the specified item, either directly before or before a number of items (defined by the step)

id getPrevId(number|string id,number step);

Parameters

idnumber|stringthe item ID
stepnumberthe step (by default, 1)

Returns

idthe item ID
See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix html5 framework and page of javascript library list product.