NativeScript-Vue 2.0: Back to the Vueture (Webinar) is now on YouTube
ActionDialog

This is an overview of the most common usage of ActionDialog. For more information about the available properties, methods, or events, head over to the complete API documentation for ActionDialog.

The action() method shows a list of selectable options and a cancellation button. Use it to let the user choose between options or dismiss the selection.

The method is part of the dialogs module.


Basic use

The action() method is available globally. You can call it anywhere in your app.

action("Your message", "Cancel button text", ["Option1", "Option2"])
  .then(result => {
    console.log(result);
  });
Contributors