You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am looking for some helping sorting my isotope by Date using $scope.$emit and I am having absolutely no success...
I can sort with a button directive attribute 'ok-sel'
date
I can also use the falling $emit option...
$scope.$emit('iso-option', { sortBy:['original-order']});
However, when I try to do the following ...
$scope.$emit('iso-option', { sortBy:['date']});
absolutely nothing....
Could somebody possible point me toward an example using sortBy with $scope.$emit.
I am not using jquery with my angular project ... so it would be awesome to have a gander at one sans jquery... but I am so desperate any will do thank you ...
Thanks...
Will
The text was updated successfully, but these errors were encountered:
I know this post is a couple of months old, but I was facing the same issue as the OP. Due to the lack of documentation around this project I looked at the sourcecode for answers and I figured out what angular-isotope does with the ok-sel and ok-type attributes.
The solution appears to be simple: just add opt[*]. For example: $scope.$emit('iso-option', { sortBy: ['opt[date]'] });
Sorry to resurrect this post, but does anyone know if it possible to trigger a sort direction in this way?
I've tried both $scope.$emit('iso-option', { ascending: ['opt[$scope.sortAscending]'] }); and $scope.$emit('iso-option', { ascending: $scope.sortAscending }); but it doesn't seem to do anything. I could add the ascending=false to each of my sort buttons but that would double the number of buttons, I'd rather choose a sort property and then choose the direction.
Hi,
I am looking for some helping sorting my isotope by Date using $scope.$emit and I am having absolutely no success...
I can sort with a button directive attribute 'ok-sel'
date
I can also use the falling $emit option...
$scope.$emit('iso-option', { sortBy:['original-order']});
However, when I try to do the following ...
$scope.$emit('iso-option', { sortBy:['date']});
absolutely nothing....
Could somebody possible point me toward an example using sortBy with $scope.$emit.
I am not using jquery with my angular project ... so it would be awesome to have a gander at one sans jquery... but I am so desperate any will do thank you ...
Thanks...
Will
The text was updated successfully, but these errors were encountered: