<ui-modal type="basic" title="Confirm account removal">
<div class="content">Are you sure you want to delete this account?</div>
</ui-modal>
The type of the modal can be 'standard' or 'basic'
The title appears at the top of the modal. The default value is an empty string.
The size of the modal can be 'fullscreen', 'small' or 'large'
<ui-modal title="Confirm publication" size="fullscreen">
<div class="content">Are you sure you want to publish this document?</div>
</ui-modal>
A ui-modal instance emits two events:
You can listen for these events in the following way:
var modal = new Modal({ ... });
modal.$on('approved', function(){ })
modal.$on('denied', function(){ })
Here is the Jade template of this component. The content blocks can be replaced using a selector. Important: Make sure you include all the Vue.js directives as in the original template for the Component to work.