Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Showing AlertDialog with a message and a title
- $AlertDialog().title("Example").message("This is an example")
- .positiveButton("OK");
- //Displaying a select with any object (it uses the object toString method)
- @Model
- List<User> users;
- $AlertDialog().title("Select User").items(usersList);
- if ($AlertDialog.ItemSelected) {
- $Toast("The user selected was: {usersList[position]}");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement