Advertisement
Guest User

Untitled

a guest
Apr 29th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. //Showing AlertDialog with a message and a title
  2. $AlertDialog().title("Example").message("This is an example")
  3. .positiveButton("OK");
  4.  
  5.  
  6. //Displaying a select with any object (it uses the object toString method)
  7. @Model
  8. List<User> users;
  9.  
  10. $AlertDialog().title("Select User").items(usersList);
  11.  
  12. if ($AlertDialog.ItemSelected) {
  13. $Toast("The user selected was: {usersList[position]}");
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement