userId

stores the id of the selected user

number userId;

Example

const state = app.getState();
state.$observe("userId", id => {
  if(id) {
    webix.message("The user id is " + id);
  }
});

Related samples

Details

The property stores the id of the selected user in the "users" list (the user id in the selected private chat). It is a read-only property and can be accessed via the state object of the app.

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.