pip-webui
Version:
HTML5 UI for LOB applications
22 lines (20 loc) • 676 B
HTML
<h2 class="text-title tm0 bm24">{{:: 'CONFIRM_DIALOG' | translate }}</h2>
<md-button class="lm0 md-raised md-accent flat" ng-click="onConfirmDialogOpen($event)">{{:: 'OPEN_CONFIRM' | translate }}</md-button>
<pre class="text-body1 color-window-bg p16">
<h3 class="text-subhead2 m0">{{:: 'CODE' | translate}}</h3>
<code class="language-js">pipConfirmationDialog.show(
{
event: event,
title: 'Agree?',
ok: 'Agree',
cancel: 'Disagree'
},
function () {
console.log('You agreed');
},
function () {
console.log('You disagreed');
}
);
</code>
</pre>