Users labels Class
Tool for viewing, and possibly managing, a user's contact labels
Constructor
Users labels
-
[options]
Parameters:
-
[options]
Object optionaloptions for the tool
-
[userId=Q.Users.loggedInUserId()]
String optionalYou can set the user id whose labels are being edited, instead of the logged-in user
-
[prefix="Users/"]
String optionalPass any prefix here, to filter labels by this prefix
-
[contactUserId]
String optionalPass a user id here to let the tool add/remove contacts with the various labels, between userId and contactUserId
-
[canAdd=false]
Boolean | String optionalPass true here to allow the user to add a new label, or a string to override the title of the command.
-
[all]
String | Object optionalTo show "all labels" option, whose value is "*", pass here its title or object with "title" and "icon" properties.
-
[onRefresh]
Q.Event optionaloccurs after the tool is refreshed
-
[onClick]
Q.Event optionaloccurs when the user clicks or taps a label. Is passed (element, label, title, wasSelected). Handlers may return false to cancel the default behavior of toggling the label.
-