myems/admin/js/plugins/nggrid/plugins
13621160019@163.com 070c7a0d56 merged myems-admin 2021-02-19 14:43:12 +08:00
..
README.md merged myems-admin 2021-02-19 14:43:12 +08:00
ng-grid-csv-export.js merged myems-admin 2021-02-19 14:43:12 +08:00
ng-grid-flexible-height.js merged myems-admin 2021-02-19 14:43:12 +08:00
ng-grid-layout.js merged myems-admin 2021-02-19 14:43:12 +08:00
ng-grid-reorderable.js merged myems-admin 2021-02-19 14:43:12 +08:00
ng-grid-wysiwyg-export.js merged myems-admin 2021-02-19 14:43:12 +08:00
playground.html merged myems-admin 2021-02-19 14:43:12 +08:00

README.md

Notes

For anyone else writing plugins, please feel free to add to this readme.

Flexible-Height

Automatically resize a table to accomodate a varying number of rows.

Usage

A semi-ugly hack to make tables shrink automatically so you dont have big ugly gray space to worry about .

      plugins: [new ngGridFlexibleHeightPlugin()]

Options

    opts =
         { minHeight: <minimum height in px> }

CSV-Export

Usage

Add CSV Export to your ng-grid tables by including it in your plugins array:

      plugins: [new ngGridCsvExportPlugin()]

Options

    opts =
         { columnOverrides: < hash of column override functions > }

For arrays and objects you may want to override the default JSON.stringify conversion into strings.