Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Angular UI Grid column menu animation

When I click on an Angular UI Grid column's arrow icon to show the dropdown menu for that column, then click the arrow icon again to hide it, the menu "shoots" up in an animated fashion, which I find undesirable.

How can I disable this behavior?

like image 530
Jason Swett Avatar asked Jun 24 '26 15:06

Jason Swett


1 Answers

The ngAnimate module is responsible for the animation. You can exclude that from the application. If any of your dependent js libraries require ngAnimate then this may not be possible.

var app = angular.module('app', ['ngTouch', 'ui.grid']);

Example without the ngAnimate

http://plnkr.co/edit/EEI8te66R2aa4H9UFTHX?p=preview

like image 62
Kathir Avatar answered Jun 26 '26 17:06

Kathir