Skip to content

Commit 1ab77df

Browse files
committed
Merge pull request #3881 from PaulL1/fixes
Export pdf in IE, extend tutorials to link to API doco
2 parents fe3ce2b + 2ec53f8 commit 1ab77df

19 files changed

+123
-32
lines changed

misc/tutorial/200_features.ngdoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@ angular.module('yourApp', ['ui.grid', 'ui.grid.feature1', 'ui.grid.feature2']);
1212
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.
1313
<pre>
1414
<div ui-grid="gridOptions" class="grid" ui-grid-feature1 ui-grid-feature2></div>
15-
</pre>
15+
</pre>
16+
17+
In general the feature documentation can be found in the api section, each feature will typically have a
18+
`gridOptions` section, it may have a `columnDef` section, and it may have a `publicApi` section.

misc/tutorial/201_editable.ngdoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
The ui.grid.edit feature allows inline editing of grid data. To enable, you must include the `'ui.grid.edit'` module
66
and you must include the `ui-grid-edit` directive on your grid element.
77

8+
Documentation for the edit feature is provided in the api documentation, in particular:
9+
10+
- {@link api/ui.grid.edit.api:ColumnDef columnDef}
11+
- {@link api/ui.grid.edit.api:GridOptions gridOptions}
12+
- {@link api/ui.grid.edit.api:PublicApi publicApi}
13+
814
You can use the `enableCellEdit` options in your column definitions to allow a column to be editable.
915

1016
Editing is invoked via double-click, f2, or start typing any non-navigable key. Cell editing ends on tab, enter or esc (cancel)

misc/tutorial/202_cellnav.ngdoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
This grid example uses the ui-grid-cellNav directive to add cell navigation. To enable, you must include the 'ui.grid.cellNav'
66
module and you must include the ui-grid-cellNav directive on your grid element.
77

8+
Documentation for the cellNav feature is provided in the api documentation, in particular:
9+
10+
- {@link api/ui.grid.cellNav.api:ColumnDef columnDef}
11+
- {@link api/ui.grid.cellNav.api:GridOptions gridOptions}
12+
- {@link api/ui.grid.cellNav.api:PublicApi publicApi}
13+
814
CellNav allows you to navigate around the grid using the arrow keys, pg-down and pg-up, enter (moves down),
915
shift-enter (moves up), tab (moves right) and shift-tab (moves left). When combined with the editable feature, the
1016
left-right arrow keys will be subsumed when in "deep edit" mode, allowing you to move around within the text you're editing.

misc/tutorial/203_pinning.ngdoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
The pinning feature allows the user to pin a column to left or right. To enable, you must include the 'ui.grid.pinning' module and you must include the ui-grid-pinning directive on your grid element.
66

7+
Documentation for the pinning feature is provided in the api documentation, in particular:
8+
9+
- {@link api/ui.grid.pinning.api:ColumnDef columnDef}
10+
- {@link api/ui.grid.pinning.api:GridOptions gridOptions}
11+
- {@link api/ui.grid.pinning.api:PublicApi publicApi}
12+
713
It is also possible to disable pinning on column level. Note the 'id' column definition in the example below.
814

915
@example

misc/tutorial/204_column_resizing.ngdoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ The Resize Columns feature allows each column to be resized.
77
To enable, you must include the 'ui.grid.resizeColumns' module and you must include the ui-grid-resize-columns directive
88
on your grid element.
99

10+
Documentation for the resize column feature is provided in the api documentation, in particular:
11+
12+
- {@link api/ui.grid.resizeColumns.api:ColumnDef columnDef}
13+
- {@link api/ui.grid.resizeColumns.api:GridOptions gridOptions}
14+
- {@link api/ui.grid.resizeColumns.api:PublicApi publicApi}
15+
1016
You can set individual columns to not be resizeable, if you do this it is recommended that those columns have a fixed
1117
pixel width - otherwise they may get automatically resized to fill the remaining space if other columns are reduced in size,
1218
and there will be no way to reduce their width again.

misc/tutorial/205_row_editable.ngdoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ with that data saved "row at a time." This feature attempts to give a user an e
77
to a spreadsheet - in that they can edit whichever fields they wish, and the feature will seek to
88
save the data "row at a time". To the extent that the data doesn't generate errors, from a user
99
perspective the saving is almost invisible - rows occassionally go grey (saving) and can't be edited whilst
10-
grey, but otherwise the user edits as if the data were local.
10+
grey, but otherwise the user edits as if the data were local.
11+
12+
Documentation for the rowEdit feature is provided in the api documentation, in particular:
13+
14+
- {@link api/ui.grid.rowEdit.api:GridOptions gridOptions}
15+
- {@link api/ui.grid.rowEdit.api:PublicApi publicApi}
1116

1217
Each row is in one of four states at any point in time:
1318

misc/tutorial/206_exporting_data.ngdoc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@ngdoc overview
2-
@name Tutorial: 206 Exporting Data With Native UI
2+
@name Tutorial: 206 Exporting Data
33
@description The exporter feature allows data to be exported from the grid in
44
csv or pdf format. The exporter can export all data, visible data or selected data.
55

@@ -9,7 +9,11 @@ directive on your grid. If you want to export as PDF you need to have installed
99
available through:
1010
<pre> bower install pdfmake </pre>
1111

12-
The options and API for exporter can be found at {@link api/ui.grid.exporter ui.grid.exporter}.
12+
The options and API for exporter can be found at {@link api/ui.grid.exporter ui.grid.exporter}, and
13+
14+
- {@link api/ui.grid.exporter.api:ColumnDef columnDef}
15+
- {@link api/ui.grid.exporter.api:GridOptions gridOptions}
16+
- {@link api/ui.grid.exporter.api:PublicApi publicApi}
1317

1418
The exporter adds menu items to the grid menu, to use the native UI you need to enable
1519
the grid menu using the gridOption `enableGridMenu`

misc/tutorial/207_importing_data.ngdoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
@ngdoc overview
2-
@name Tutorial: 207 Importing Data With Native UI
2+
@name Tutorial: 207 Importing Data
33
@description The importer feature allows data to be imported into the grid in
44
csv or json format. The importer can use the native grid menu, or can accept a
55
file from a custom file picker implemented by the user.
66

77
The importer imports files in json or csv format, with the ability to be extended
88
to other file formats if demand exists.
99

10+
Documentation for the importer feature is provided in the api documentation, in particular:
11+
12+
- {@link api/ui.grid.importer.api:GridOptions gridOptions}
13+
- {@link api/ui.grid.importer.api:PublicApi publicApi}
14+
1015
For json format files the received elements are assumed to match the column.field
1116
attributes in your columnDefs, and are loaded into the provided entity.
1217

misc/tutorial/208_save_state.ngdoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@ngdoc overview
2-
@name Tutorial: 208 Saving and restoring the state of the grid
2+
@name Tutorial: 208 Save and restore state
33
@description The save state feature allows you to save the current look of the grid
44
and restore it upon returning to the grid.
55

@@ -9,6 +9,11 @@ might adjust their grid to look as they wish, and then navigate to another page.
99
the user returns to the page with the grid, they might expect it to look like it
1010
did when they left. The save state feature permits this.
1111

12+
Documentation for the saveState feature is provided in the api documentation, in particular:
13+
14+
- {@link api/ui.grid.saveState.api:GridOptions gridOptions}
15+
- {@link api/ui.grid.saveState.api:PublicApi publicApi}
16+
1217
There are two core methods:
1318

1419
- save, which packages the current grid state into an object which the calling application

misc/tutorial/209_grouping.ngdoc

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ values in specific columns, providing an effect similar in some ways to an Excel
55
Columns that aren't grouped by can be aggregated, providing for example a running count
66
of the number of rows in each group.
77

8-
_**BREAKING CHANGES IN RC22 for grouping. Prior to RC22 grouping was a standalone feature, with RC22
8+
_** BREAKING CHANGES IN RC22 for grouping. Prior to RC22 grouping was a standalone feature, with RC22
99
a number of things have changed as grouping and treeView move to a shared code base. In particular:
1010
- methods such as expandAll are now on treeBase, not on grouping
1111
- aggregations move from being col.grouping.aggregation to col.treeAggregation
@@ -18,6 +18,15 @@ a number of things have changed as grouping and treeView move to a shared code b
1818
- groupingRowHeaderAlwaysVisible is now treeRowHeaderAlwaysVisible, and default has changed to true
1919
**_
2020

21+
Documentation for the grouping feature is provided in the api documentation, both under
22+
grouping itself, and shared functions in the treeBase documentation. In particular:
23+
24+
- {@link api/ui.grid.grouping.api:ColumnDef grouping columnDef} and {@link api/ui.grid.treeBase.api:ColumnDef treeBase columnDef}
25+
- {@link api/ui.grid.grouping.api:GridOptions grouping gridOptions} and {@link api/ui.grid.treeBase.api:GridOptions treeBase gridOptions}
26+
- {@link api/ui.grid.grouping.api:PublicApi grouping publicApi} and {@link api/ui.grid.treeBase.api:PublicApi treeBase publicApi}
27+
28+
The tree structure itself is documented at {@link api/ui.grid.treeBase.grid:treeBase treeBase}.
29+
2130
Grouping can be set programmatically by using the columnDef option `grouping: { groupPriority: 0 }`,
2231
or for aggregations on a column by setting `treeAggregation: {type: uiGridGroupingConstants.aggregation.COUNT}`.
2332

0 commit comments

Comments
 (0)