ons-alert-dialog-button

Usage


<ons-alert-dialog>
  <div class="alert-dialog-title">Warning!</div>
  <div class="alert-dialog-content">
    An error has occurred!
  </div>
  <div class="alert-dialog-footer">
    <alert-dialog-button onclick="app.close()">Cancel</alert-dialog-button>
    <alert-dialog-button class="alert-dialog-button" onclick="app.close()">OK</alert-dialog-button>
  </div>
</ons-alert-dialog>

See also

Attributes

Name Type Description
modifier String The appearance of the button. Optional.
disabled Specify if button should be disabled. Optional.

Properties

Name Description
disabled Whether the element is disabled or not.

Preset Modifiers

Name Description
material Material Design alert-dialog button.

Discussion

Need Help?

If you have any questions, use our Community Forum or talk to us on Discord chat. The Onsen UI team and your peers in the community will work together to help solve your issues.

For bug reports and feature requests use our GitHub Issues page.