setCursor

sets the position of the cursor

void setCursor(id cursor);
cursoridthe cursor position

Example

var data = new webix.DataCollection({ 
  ...  // collection config
});
 
$$('list').attachEvent("onAfterSelect", function (id) {
  data.setCursor(id);
});

Related samples

Details

The cursor position is the ID of an item that the cursor is set on, not the item index.

See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.