The pinning plugin for UI-Grid provides the ability to pin a a column to left or right. It is also possible to disable pinning on column level.
You can install
npm i --save @ui-grid/pinning
Once you install you need to load the respective JS and CSS files as seen bellow:
Alternatively, if you are using Webpack or RequireJS to load your dependencies, you can do the following at the top of the file that needs it:
Once you load the file, you need to include 'ui.grid.pinning' module in your angularJS app's dependencies, and add the ui-grid-pinning directive to your grid element.
You can find an example of this plugin in action on our website
Documentation for this plugin is provided in the api documentation, but we recommend that you pay special attention to the following: