-
Notifications
You must be signed in to change notification settings - Fork 2.5k
/
Copy path200_features.ngdoc
25 lines (20 loc) · 1.14 KB
/
200_features.ngdoc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
@ngdoc overview
@name Tutorial: 200 Features
@description
The core module, ui.grid, contains only the core features needed. More complex features are separated into feature modules and must be included in your application module.
You must include each feature as a dependency for your application module.
<pre>
angular.module('yourApp', ['ui.grid', 'ui.grid.feature1', 'ui.grid.feature2']);
</pre>
Each feature directive must also be included in alongside the ui-grid directive. This allows you to have many grids in an application and enable certain features for each grid instance.
<pre>
<div ui-grid="gridOptions" class="grid" ui-grid-feature1 ui-grid-feature2></div>
</pre>
Similarly, if you are using separate files for performance, you need to load the feature files into your HTML:
<pre>
<script src="/release/ui-grid.core.js"></script>
<script src="/release/ui-grid.feature1.js"></script>
<script src="/release/ui-grid.feature2.js"></script>
</pre>
In general the feature documentation can be found in the api section, each feature will typically have a
`gridOptions` section, it may have a `columnDef` section, and it may have a `publicApi` section.