salix/front/core/components/confirm/confirm.js

21 lines
460 B
JavaScript
Raw Normal View History

2018-02-10 15:18:01 +00:00
import ngModule from '../../module';
2019-10-26 23:30:01 +00:00
import Dialog from '../dialog';
import template from './confirm.html';
2019-11-20 05:53:37 +00:00
import './style.scss';
export default class Confirm extends Dialog {
2019-10-26 23:30:01 +00:00
constructor($element, $, $transclude) {
super($element, $, $transclude);
2020-03-30 15:30:03 +00:00
this.fillSlots(template);
}
}
2019-10-26 23:30:01 +00:00
ngModule.vnComponent('vnConfirm', {
controller: Confirm,
transclude: true,
bindings: {
2017-02-07 16:38:30 +00:00
question: '@',
message: '@?'
2019-10-26 23:30:01 +00:00
}
});