Skip to content

Commit 6a5022f

Browse files
gh-pages v4.11.1
1 parent 25bb238 commit 6a5022f

File tree

383 files changed

+104023
-7121
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

383 files changed

+104023
-7121
lines changed

docs/grunt-scripts/pdfmake.js

+4,325-5,903
Large diffs are not rendered by default.

docs/grunt-scripts/vfs_fonts.js

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/js/docs-setup.js

+4-4
Large diffs are not rendered by default.

docs/partials/api/ui.grid.class.Grid.html

+56-38
Large diffs are not rendered by default.

docs/partials/api/ui.grid.class.rowSorter.html

+11-11
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
algorithms</p>
1010
</div></div>
1111
<div class="member method"><h2 id="methods">Methods</h2>
12-
<ul class="methods"><li><a href="https://github.com/angular-ui/ui-grid/blob/master/packages/core/src/js/services/rowSorter.js#L103" class="view-source icon-eye-open"> </a><h3 id="methods_basicsort">basicSort(a, b)</h3>
12+
<ul class="methods"><li><a href="https://github.com/angular-ui/ui-grid/blob/master/packages/core/src/js/services/rowSorter.js#L92" class="view-source icon-eye-open"> </a><h3 id="methods_basicsort">basicSort(a, b)</h3>
1313
<div class="basicsort"><div class="basicsort-page"><p>Sorts any values that provide the &lt; method, including strings
1414
or numbers. Handles nulls and undefined through calling handleNulls</p>
1515
</div><h5 id="methods_basicsort_parameters">Parameters</h5><table class="variables-matrix table table-bordered table-striped"><thead><tr><th>Param</th><th>Type</th><th>Details</th></tr></thead><tbody><tr><td>a</td><td><a href="" class="label type-hint type-hint-object">object</a></td><td><div class="basicsort-page"><p>sort value a</p>
1616
</div></td></tr><tr><td>b</td><td><a href="" class="label type-hint type-hint-object">object</a></td><td><div class="basicsort-page"><p>sort value b</p>
1717
</div></td></tr></tbody></table><h5 id="methods_basicsort_returns">Returns</h5><table class="variables-matrix"><tr><td><a href="" class="label type-hint type-hint-number">number</a></td><td><div class="basicsort-page"><p>normal sort function, returns -ve, 0, +ve</p>
1818
</div></td></tr></table></div>
1919
</li>
20-
<li><a href="https://github.com/angular-ui/ui-grid/blob/master/packages/core/src/js/services/rowSorter.js#L293" class="view-source icon-eye-open"> </a><h3 id="methods_getsortfn">getSortFn(grid, col, rows)</h3>
20+
<li><a href="https://github.com/angular-ui/ui-grid/blob/master/packages/core/src/js/services/rowSorter.js#L251" class="view-source icon-eye-open"> </a><h3 id="methods_getsortfn">getSortFn(grid, col, rows)</h3>
2121
<div class="getsortfn"><div class="getsortfn-page"><p>Get the sort function for the column. Looks first in
2222
rowSorter.colSortFnCache using the column name, failing that it
2323
looks at col.sortingAlgorithm (and puts it in the cache), failing that
@@ -34,14 +34,14 @@
3434
</div></td></tr></tbody></table><h5 id="methods_getsortfn_returns">Returns</h5><table class="variables-matrix"><tr><td><a href="" class="label type-hint type-hint-function">function</a></td><td><div class="getsortfn-page"><p>the sort function chosen for the column</p>
3535
</div></td></tr></table></div>
3636
</li>
37-
<li><a href="https://github.com/angular-ui/ui-grid/blob/master/packages/core/src/js/services/rowSorter.js#L42" class="view-source icon-eye-open"> </a><h3 id="methods_guesssortfn">guessSortFn(itemType)</h3>
37+
<li><a href="https://github.com/angular-ui/ui-grid/blob/master/packages/core/src/js/services/rowSorter.js#L32" class="view-source icon-eye-open"> </a><h3 id="methods_guesssortfn">guessSortFn(itemType)</h3>
3838
<div class="guesssortfn"><div class="guesssortfn-page"><p>Assigns a sort function to use based on the itemType in the column</p>
3939
</div><h5 id="methods_guesssortfn_parameters">Parameters</h5><table class="variables-matrix table table-bordered table-striped"><thead><tr><th>Param</th><th>Type</th><th>Details</th></tr></thead><tbody><tr><td>itemType</td><td><a href="" class="label type-hint type-hint-string">string</a></td><td><div class="guesssortfn-page"><p>one of &#39;number&#39;, &#39;boolean&#39;, &#39;string&#39;, &#39;date&#39;, &#39;object&#39;. And
4040
error will be thrown for any other type.</p>
4141
</div></td></tr></tbody></table><h5 id="methods_guesssortfn_returns">Returns</h5><table class="variables-matrix"><tr><td><a href="" class="label type-hint type-hint-function">function</a></td><td><div class="guesssortfn-page"><p>a sort function that will sort that type</p>
4242
</div></td></tr></table></div>
4343
</li>
44-
<li><a href="https://github.com/angular-ui/ui-grid/blob/master/packages/core/src/js/services/rowSorter.js#L75" class="view-source icon-eye-open"> </a><h3 id="methods_handlenulls">handleNulls(a, b)</h3>
44+
<li><a href="https://github.com/angular-ui/ui-grid/blob/master/packages/core/src/js/services/rowSorter.js#L65" class="view-source icon-eye-open"> </a><h3 id="methods_handlenulls">handleNulls(a, b)</h3>
4545
<div class="handlenulls"><div class="handlenulls-page"><p>Sorts nulls and undefined to the bottom (top when
4646
descending). Called by each of the internal sorters before
4747
attempting to sort. Note that this method is available on the core api
@@ -52,7 +52,7 @@
5252
a sort value that should be passed back from the sort function</p>
5353
</div></td></tr></table></div>
5454
</li>
55-
<li><a href="https://github.com/angular-ui/ui-grid/blob/master/packages/core/src/js/services/rowSorter.js#L344" class="view-source icon-eye-open"> </a><h3 id="methods_prioritysort">prioritySort(a, b)</h3>
55+
<li><a href="https://github.com/angular-ui/ui-grid/blob/master/packages/core/src/js/services/rowSorter.js#L295" class="view-source icon-eye-open"> </a><h3 id="methods_prioritysort">prioritySort(a, b)</h3>
5656
<div class="prioritysort"><div class="prioritysort-page"><p>Used where multiple columns are present in the sort criteria,
5757
we determine which column should take precedence in the sort by sorting
5858
the columns based on their sort.priority</p>
@@ -61,7 +61,7 @@
6161
</div></td></tr></tbody></table><h5 id="methods_prioritysort_returns">Returns</h5><table class="variables-matrix"><tr><td><a href="" class="label type-hint type-hint-number">number</a></td><td><div class="prioritysort-page"><p>normal sort function, returns -ve, 0, +ve</p>
6262
</div></td></tr></table></div>
6363
</li>
64-
<li><a href="https://github.com/angular-ui/ui-grid/blob/master/packages/core/src/js/services/rowSorter.js#L396" class="view-source icon-eye-open"> </a><h3 id="methods_sort">sort(grid, rows, columns)</h3>
64+
<li><a href="https://github.com/angular-ui/ui-grid/blob/master/packages/core/src/js/services/rowSorter.js#L343" class="view-source icon-eye-open"> </a><h3 id="methods_sort">sort(grid, rows, columns)</h3>
6565
<div class="sort"><div class="sort-page"><p>sorts the grid</p>
6666
</div><h5 id="methods_sort_parameters">Parameters</h5><table class="variables-matrix table table-bordered table-striped"><thead><tr><th>Param</th><th>Type</th><th>Details</th></tr></thead><tbody><tr><td>grid</td><td><a href="" class="label type-hint type-hint-object">Object</a></td><td><div class="sort-page"><p>the grid itself</p>
6767
</div></td></tr><tr><td>rows</td><td><a href="" class="label type-hint type-hint-array">array</a></td><td><div class="sort-page"><p>the rows to be sorted</p>
@@ -70,37 +70,37 @@
7070
</div></td></tr></tbody></table><h5 id="methods_sort_returns">Returns</h5><table class="variables-matrix"><tr><td><a href="" class="label type-hint type-hint-array">array</a></td><td><div class="sort-page"><p>sorted rows</p>
7171
</div></td></tr></table></div>
7272
</li>
73-
<li><a href="https://github.com/angular-ui/ui-grid/blob/master/packages/core/src/js/services/rowSorter.js#L201" class="view-source icon-eye-open"> </a><h3 id="methods_sortalpha">sortAlpha(a, b)</h3>
73+
<li><a href="https://github.com/angular-ui/ui-grid/blob/master/packages/core/src/js/services/rowSorter.js#L173" class="view-source icon-eye-open"> </a><h3 id="methods_sortalpha">sortAlpha(a, b)</h3>
7474
<div class="sortalpha"><div class="sortalpha-page"><p>Sorts string values. Handles nulls and undefined through calling handleNulls</p>
7575
</div><h5 id="methods_sortalpha_parameters">Parameters</h5><table class="variables-matrix table table-bordered table-striped"><thead><tr><th>Param</th><th>Type</th><th>Details</th></tr></thead><tbody><tr><td>a</td><td><a href="" class="label type-hint type-hint-object">object</a></td><td><div class="sortalpha-page"><p>sort value a</p>
7676
</div></td></tr><tr><td>b</td><td><a href="" class="label type-hint type-hint-object">object</a></td><td><div class="sortalpha-page"><p>sort value b</p>
7777
</div></td></tr></tbody></table><h5 id="methods_sortalpha_returns">Returns</h5><table class="variables-matrix"><tr><td><a href="" class="label type-hint type-hint-number">number</a></td><td><div class="sortalpha-page"><p>normal sort function, returns -ve, 0, +ve</p>
7878
</div></td></tr></table></div>
7979
</li>
80-
<li><a href="https://github.com/angular-ui/ui-grid/blob/master/packages/core/src/js/services/rowSorter.js#L253" class="view-source icon-eye-open"> </a><h3 id="methods_sortbool">sortBool(a, b)</h3>
80+
<li><a href="https://github.com/angular-ui/ui-grid/blob/master/packages/core/src/js/services/rowSorter.js#L217" class="view-source icon-eye-open"> </a><h3 id="methods_sortbool">sortBool(a, b)</h3>
8181
<div class="sortbool"><div class="sortbool-page"><p>Sorts boolean values, true is considered larger than false.
8282
Handles nulls and undefined through calling handleNulls</p>
8383
</div><h5 id="methods_sortbool_parameters">Parameters</h5><table class="variables-matrix table table-bordered table-striped"><thead><tr><th>Param</th><th>Type</th><th>Details</th></tr></thead><tbody><tr><td>a</td><td><a href="" class="label type-hint type-hint-object">object</a></td><td><div class="sortbool-page"><p>sort value a</p>
8484
</div></td></tr><tr><td>b</td><td><a href="" class="label type-hint type-hint-object">object</a></td><td><div class="sortbool-page"><p>sort value b</p>
8585
</div></td></tr></tbody></table><h5 id="methods_sortbool_returns">Returns</h5><table class="variables-matrix"><tr><td><a href="" class="label type-hint type-hint-number">number</a></td><td><div class="sortbool-page"><p>normal sort function, returns -ve, 0, +ve</p>
8686
</div></td></tr></table></div>
8787
</li>
88-
<li><a href="https://github.com/angular-ui/ui-grid/blob/master/packages/core/src/js/services/rowSorter.js#L224" class="view-source icon-eye-open"> </a><h3 id="methods_sortdate">sortDate(a, b)</h3>
88+
<li><a href="https://github.com/angular-ui/ui-grid/blob/master/packages/core/src/js/services/rowSorter.js#L195" class="view-source icon-eye-open"> </a><h3 id="methods_sortdate">sortDate(a, b)</h3>
8989
<div class="sortdate"><div class="sortdate-page"><p>Sorts date values. Handles nulls and undefined through calling handleNulls.
9090
Handles date strings by converting to Date object if not already an instance of Date</p>
9191
</div><h5 id="methods_sortdate_parameters">Parameters</h5><table class="variables-matrix table table-bordered table-striped"><thead><tr><th>Param</th><th>Type</th><th>Details</th></tr></thead><tbody><tr><td>a</td><td><a href="" class="label type-hint type-hint-object">object</a></td><td><div class="sortdate-page"><p>sort value a</p>
9292
</div></td></tr><tr><td>b</td><td><a href="" class="label type-hint type-hint-object">object</a></td><td><div class="sortdate-page"><p>sort value b</p>
9393
</div></td></tr></tbody></table><h5 id="methods_sortdate_returns">Returns</h5><table class="variables-matrix"><tr><td><a href="" class="label type-hint type-hint-number">number</a></td><td><div class="sortdate-page"><p>normal sort function, returns -ve, 0, +ve</p>
9494
</div></td></tr></table></div>
9595
</li>
96-
<li><a href="https://github.com/angular-ui/ui-grid/blob/master/packages/core/src/js/services/rowSorter.js#L128" class="view-source icon-eye-open"> </a><h3 id="methods_sortnumber">sortNumber(a, b)</h3>
96+
<li><a href="https://github.com/angular-ui/ui-grid/blob/master/packages/core/src/js/services/rowSorter.js#L118" class="view-source icon-eye-open"> </a><h3 id="methods_sortnumber">sortNumber(a, b)</h3>
9797
<div class="sortnumber"><div class="sortnumber-page"><p>Sorts numerical values. Handles nulls and undefined through calling handleNulls</p>
9898
</div><h5 id="methods_sortnumber_parameters">Parameters</h5><table class="variables-matrix table table-bordered table-striped"><thead><tr><th>Param</th><th>Type</th><th>Details</th></tr></thead><tbody><tr><td>a</td><td><a href="" class="label type-hint type-hint-object">object</a></td><td><div class="sortnumber-page"><p>sort value a</p>
9999
</div></td></tr><tr><td>b</td><td><a href="" class="label type-hint type-hint-object">object</a></td><td><div class="sortnumber-page"><p>sort value b</p>
100100
</div></td></tr></tbody></table><h5 id="methods_sortnumber_returns">Returns</h5><table class="variables-matrix"><tr><td><a href="" class="label type-hint type-hint-number">number</a></td><td><div class="sortnumber-page"><p>normal sort function, returns -ve, 0, +ve</p>
101101
</div></td></tr></table></div>
102102
</li>
103-
<li><a href="https://github.com/angular-ui/ui-grid/blob/master/packages/core/src/js/services/rowSorter.js#L148" class="view-source icon-eye-open"> </a><h3 id="methods_sortnumberstr">sortNumberStr(a, b)</h3>
103+
<li><a href="https://github.com/angular-ui/ui-grid/blob/master/packages/core/src/js/services/rowSorter.js#L142" class="view-source icon-eye-open"> </a><h3 id="methods_sortnumberstr">sortNumberStr(a, b)</h3>
104104
<div class="sortnumberstr"><div class="sortnumberstr-page"><p>Sorts numerical values that are stored in a string (i.e. parses them to numbers first).
105105
Handles nulls and undefined through calling handleNulls</p>
106106
</div><h5 id="methods_sortnumberstr_parameters">Parameters</h5><table class="variables-matrix table table-bordered table-striped"><thead><tr><th>Param</th><th>Type</th><th>Details</th></tr></thead><tbody><tr><td>a</td><td><a href="" class="label type-hint type-hint-object">object</a></td><td><div class="sortnumberstr-page"><p>sort value a</p>

docs/partials/api/ui.grid.exporter.api.GridOptions.html

+32-4
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,14 @@
5454
<li><h3 id="properties_exportercsvfilename">exporterCsvFilename</h3>
5555
<div class="exportercsvfilename"><div class="exportercsvfilename-page"><p>The default filename to use when saving the downloaded csv.
5656
This will only work in some browsers.
57-
<br/>Defaults to &#39;download.csv&#39;</p>
57+
<br/>Defaults to &#39;download.csv&#39;
58+
<pre class="prettyprint linenums">
59+
gridOptions.exporterCsvFilename = "rows.csv"
60+
</pre>
61+
<br/>Or a function returning a string:
62+
<pre class="prettyprint linenums">
63+
gridOptions.exporterCsvFilename = function(grid, rowTypes, colTypes) { return "rows" + rowTypes + ".csv" };
64+
</pre>
5865
</div></div>
5966
</li>
6067
<li><h3 id="properties_exporterexcelcustomformatters">exporterExcelCustomFormatters</h3>
@@ -82,7 +89,14 @@
8289
</li>
8390
<li><h3 id="properties_exporterexcelfilename">exporterExcelFilename</h3>
8491
<div class="exporterexcelfilename"><div class="exporterexcelfilename-page"><p>The default filename to use when saving the downloaded excel, only used in IE (other browsers open excels in a new window)
85-
<br/>Defaults to &#39;download.xlsx&#39;</p>
92+
<br/>Defaults to &#39;download.xlsx&#39;
93+
<pre class="prettyprint linenums">
94+
gridOptions.exporterExcelFilename = "rows.xlsx"
95+
</pre>
96+
<br/>Or a function returning a string:
97+
<pre class="prettyprint linenums">
98+
gridOptions.exporterExcelFilename = function(grid, rowTypes, colTypes) { return "rows" + rowTypes + ".xlsx" };
99+
</pre>
86100
</div></div>
87101
</li>
88102
<li><h3 id="properties_exporterexcelheader">exporterExcelHeader</h3>
@@ -104,7 +118,14 @@
104118
</li>
105119
<li><h3 id="properties_exporterexcelsheetname">exporterExcelSheetName</h3>
106120
<div class="exporterexcelsheetname"><div class="exporterexcelsheetname-page"><p>The default sheetname to use when saving the downloaded to excel
107-
<br/>Defaults to &#39;Sheet1&#39;</p>
121+
<br/>Defaults to &#39;Sheet1&#39;
122+
<pre class="prettyprint linenums">
123+
gridOptions.exporterExcelSheetName = "HitListSheet"
124+
</pre>
125+
<br/>Or a function returning a string:
126+
<pre class="prettyprint linenums">
127+
gridOptions.exporterExcelSheetName = function(grid, rowTypes, colTypes) { return "HitListSheet" + rowTypes };
128+
</pre>
108129
</div></div>
109130
</li>
110131
<li><h3 id="properties_exporterfieldapplyfilters">exporterFieldApplyFilters</h3>
@@ -259,7 +280,14 @@
259280
</li>
260281
<li><h3 id="properties_exporterpdffilename">exporterPdfFilename</h3>
261282
<div class="exporterpdffilename"><div class="exporterpdffilename-page"><p>The default filename to use when saving the downloaded pdf, only used in IE (other browsers open pdfs in a new window)
262-
<br/>Defaults to &#39;download.pdf&#39;</p>
283+
<br/>Defaults to &#39;download.pdf&#39;
284+
<pre class="prettyprint linenums">
285+
gridOptions.exporterPdfFilename = "rows.pdf"
286+
</pre>
287+
<br/>Or a function returning a string:
288+
<pre class="prettyprint linenums">
289+
gridOptions.exporterPdfFilename = function(grid, rowTypes, colTypes) { return "rows" + rowTypes + ".pdf" };
290+
</pre>
263291
</div></div>
264292
</li>
265293
<li><h3 id="properties_exporterpdffooter">exporterPdfFooter</h3>

docs/partials/api/ui.grid.exporter.api.GridRow.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<a href="https://github.com/angular-ui/ui-grid/edit/master/packages/exporter/src/js/exporter.js" class="improve-docs"><i class="icon-edit"> </i>Improve this doc</a><a href="https://github.com/angular-ui/ui-grid/blob/master/packages/exporter/src/js/exporter.js#L937" class="view-source"><i class="icon-eye-open"> </i>View source</a><h1><code ng:non-bindable="">GridRow</code>
1+
<a href="https://github.com/angular-ui/ui-grid/edit/master/packages/exporter/src/js/exporter.js" class="improve-docs"><i class="icon-edit"> </i>Improve this doc</a><a href="https://github.com/angular-ui/ui-grid/blob/master/packages/exporter/src/js/exporter.js#L966" class="view-source"><i class="icon-eye-open"> </i>View source</a><h1><code ng:non-bindable="">GridRow</code>
22
<div><span class="hint">object in module <code ng:non-bindable="">ui.grid.exporter</code>
33
</span>
44
</div>

docs/partials/api/ui.grid.exporter.directive.uiGridExporter.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<a href="https://github.com/angular-ui/ui-grid/edit/master/packages/exporter/src/js/exporter.js" class="improve-docs"><i class="icon-edit"> </i>Improve this doc</a><a href="https://github.com/angular-ui/ui-grid/blob/master/packages/exporter/src/js/exporter.js#L1712" class="view-source"><i class="icon-eye-open"> </i>View source</a><h1><code ng:non-bindable="">uiGridExporter</code>
1+
<a href="https://github.com/angular-ui/ui-grid/edit/master/packages/exporter/src/js/exporter.js" class="improve-docs"><i class="icon-edit"> </i>Improve this doc</a><a href="https://github.com/angular-ui/ui-grid/blob/master/packages/exporter/src/js/exporter.js#L1746" class="view-source"><i class="icon-eye-open"> </i>View source</a><h1><code ng:non-bindable="">uiGridExporter</code>
22
<div><span class="hint">directive in module <code ng:non-bindable="">ui.grid.exporter</code>
33
</span>
44
</div>

0 commit comments

Comments
 (0)