An AngularJS module for resizing table columns!
npm install angular-table-resize
bower install angular-table-resize
`
#### NPM
`
npm install angular-table-resize
`Quick Setup
#### Link style sheets
`html
`#### Import dependencies
`html
`#### Import the module
`html
`#### Install the module
Add the module to your application
`javascript
angular.module('myApplication', ['rzTable']);
`On a HTML table tag put the
rz-table directive
`html
...
`That wasn't so hard was it now?
Attributes
* rz-mode
Changes the resizing mode of the module (see resizing modes). Two-way-binding to a string, that is the name of the resizer you want to use.
* rz-save
Two-way-binding to boolean variable. Whether or not to save the column sizes in local storage (see local storage). Default is true.
* rz-busy
Two-way-binding to boolean variable. As long as the value is true, the table will not be initialised. Can be used to postpone initialisation until other components has been initialised. Should only be used in special case scenarios.
* rz-options
Two-way-binding to an object literal with optional/additional options (see options)
* rz-model
Two-way-binding to a variable on the controller scope. The variable will be overwritten with an object literal, where you can access utility functions (see utilities).
* rz-profile
Two-way-binding to a string which is a unique identifier for the currently active profile. Default is the default profile (the empty string).
* rz-container
A string which is the query selector for the container of the table. Default is the parent element of the table.
Local Storage
The module automatically saves the current column widths to localStorage. This however requires that you supply your ) with an id as well. Otherwise you should set rz-save to false. For dynamic tables you should use the rz-col directive (see dynamic tables).ng-repeat) you should instead of using an id for your table headers ( | ) use the rz-col directive. Remember that your table must still have an id for local storage to work.`html`rz-col directive is a two-way-binding to a string, which is the id for that column.rz-mode to a scope variable. Choose the one that works best for you in practice.tableClass, handleClass and handleClassActive). You must keep in mind that the module works best with tables which has the following styles set for the |
|---|