24 lines
602 B
JavaScript
24 lines
602 B
JavaScript
import ngModule from '../../module';
|
|
import Dialog from '../dialog';
|
|
import template from './confirm.html';
|
|
import './style.scss';
|
|
|
|
export default class Confirm extends Dialog {
|
|
constructor($element, $, $transclude) {
|
|
super($element, $, $transclude);
|
|
|
|
let $template = angular.element(template);
|
|
this.fillSlot('body', $template.find('tpl-body'));
|
|
this.fillSlot('buttons', $template.find('tpl-buttons'));
|
|
}
|
|
}
|
|
|
|
ngModule.vnComponent('vnConfirm', {
|
|
controller: Confirm,
|
|
transclude: true,
|
|
bindings: {
|
|
question: '@',
|
|
message: '@?'
|
|
}
|
|
});
|