This class is used to confirm user destructive actions or provide a choice between different actions.
var sheet = new NKAlertSheet();
sheet.init("actionSheetButtonPressed");
sheet.addButtonWithTitle("Sure!");
sheet.addButtonWithTitle("So-so");
sheet.addButtonWithTitle("Nah");
sheet.setRedButtonIndex(2);
sheet.setStyle("black");
sheet.setTitle("Do you like it?");
sheet.show();
The above line of code works as follows:
Press this to see