i have used jquery selectable to select elements its working fine .
myModule.directive('uiSelectable', function ($parse) {
return {
link: function (scope, element, attrs, ctrl) {
scope.$on('clearselection', function (event, document) {
element.find('.ui-selected').removeClass('ui-selected')
});
element.selectable({
stop: function (evt, ui) {
var collection = scope.$eval(attrs.docArray)
var selected = element.find('div.parent.ui-selected').map(function () {
var idx = $(this).index();
return { document: collection[idx] }
}).get();
scope.selectedItems = selected;
scope.$apply()
}
});
}
}
});
issue is when i click child element in selectable it doesn't get clicked rather its parent element click (where i have implemented selectable) gets fired
can some one guide me how can i click child element using angularjs
Plunker
http://plnkr.co/edit/3cSef9h7MeYSM0cgYUIX?p=preview
after a bit research i come to the conclusion its because of Jquery UI-Selectable any one have idea how to fix it with UI-Selectable or have any other alternative to select multiple items with ctlr + shift