ngSelect
ngSelect copied to clipboard
lasso and keyboard support
hi, awesome work there, can we have ability to drag to select and also using Shift and Ctrl keys like in windows explorer?
thanks in advanced.
Hello @devmondo,
I think the support of Shift and Ctrl keys is pretty nice idea. I'll add it to my todo list, see how to implement it as an option.
As for the drag to select functionality, since in my point of view, ngSelect is more of a function-based directive rather than an ui-based directive, currently it wouldn't be considered for implementation. It still a really nice idea, and thanks for your suggestions.
thanks for the fast response,
regarding drag, you might be right, but the way i see it is when we are already using mouse to select items then we are interacting with UI, so there is no harm into adding drag functionality, otherwise we would have to resort to jquery UI, and this will cause problems, because i think this will create a conflict.
if we get all those functionalaties then there is no need for jquery UI and we will have a full fledged module that will support all modern applications needs. which would be awesome
Good point and you got me. Drag to select in coming weeks!
awesome man, this will makes us ditch jquery ui all together, please don't forget shift and ctrl keys support :)
@pc035860 We can remove UI related code from ngSelect and provide API for selecting an item. Something like
<div ng-select-option="value">
<span ng-click="ngToggleOption()">Select me</span>
</div>
and in ngSelectOption directive
link: function(scope, iElm, iAttrs, ngSelectCtrl) {
//...
scope.ngToggleOption = function() {
// select\unselect implementation here.
}
}
This way we allow users to have their own UI interactions as they want.
@pc035860 batch selection with Shift and Ctrl keys would be really nice Is there any progress in development of this feature?