2
我想建立一个指令,使角度UI $ uibModal可拖动。当模式拖动时,我也想关闭所有打开的模式体中的ui-select下拉列表。以编程方式关闭所有ui-select下拉列表?
有没有人知道如何关闭所有ui-select
列表中的$uibModal
?
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 ???
}
}