smebberson/linz — pull request #47 by sandytrinh (2014-07-30 04:39:52+00:00)
Title: Data export functionality

This PR adds the ability to export data for each model. This is the proposed default DSL for export:
```
grid: {
export: {
enable: false,
label: 'Export'
action: 'export',
exclusion: '_id,dateCreated,dateModified,createdBy,modifiedBy'
}
}
```

## Export configurations

- All settings for export can be overwritten.
- If a custom export.action is provided, user must provide custom route mapping to the provided action URL.
- If export.exclusion field is defined, user must also includes the default exclusion fields as the custom exclusion field will overwrite the default.

## Todos:

- [x] Add export button to model index header if export.enable is true
- [x] Add modal to render export UI
- [x] Add route mapping for default export path e.g. /admin/model/{modelName}/export
- [x] Add route & middleware for export
- [x] Add ability to export filtered result
- [x] Add ability to export selected record from filtered result
- [x] Add ability to exclude fields from export