【发布时间】:2018-03-02 03:21:17
【问题描述】:
我正在尝试构建一个指令以使角度 UI $uibModal 可拖动。当模态被拖动时,我还想关闭模态体中所有打开的 ui-select 下拉列表。
有人知道如何关闭$uibModal 中的所有ui-select 列表吗?
jsbin https://jsbin.com/lopitopiwa/edit?html,js,output
angular.module('myApp').directive('uibModalDragging',[
UibModalDragging
]);
function UibModalDragging() {
return {
restrict: 'A',
scope: false,
link: function (scope, iElem, iAttrs) {
$(iElem).closest('.modal-content').draggable({
handler: '.panel-heading',
start: onStart
})
}
};
function onStart() {
//*********************************************
//close all ui-select ???
}
}
【问题讨论】:
标签: angularjs angular-ui-bootstrap bootstrap-modal angular-ui-select