Skip to content

Commit d6fd440

Browse files
committed
gh-pages v4.6.0-8bd67215
1 parent f12eb72 commit d6fd440

File tree

139 files changed

+7140
-7275
lines changed

Some content is hidden

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

139 files changed

+7140
-7275
lines changed

docs/grunt-scripts/pdfmake.js

Lines changed: 1078 additions & 1217 deletions
Large diffs are not rendered by default.

docs/js/docs-setup.js

Lines changed: 8 additions & 8 deletions
Large diffs are not rendered by default.

docs/partials/api/ui.grid.cellNav.api.PublicApi.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<ul class="events"><li><h3 id="events_navigate">navigate</h3>
3838
<div class="navigate"><div class="navigate-page"><p>raised when the active cell is changed
3939
<pre class="prettyprint linenums">
40-
gridApi.cellNav.on.navigate(scope,function(newRowcol, oldRowCol){})
40+
gridApi.cellNav.on.navigate(scope,function(newRowcol, oldRowCol) {})
4141
</pre>
4242
</div><div class="inline"></div>
4343
<div class="inline"></div>

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ <h4 id="usage_parameters">Parameters</h4><table class="variables-matrix table ta
2929
</div><h5 id="methods_buildcolumndefsfromdata_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>rowBuilder</td><td><a href="" class="label type-hint type-hint-function">function(colDef, col, gridOptions</a></td><td><div class="buildcolumndefsfromdata-page"><p>function to be called</p>
3030
</div></td></tr></tbody></table></div>
3131
</li>
32-
<li><a href="https://github.com/{{repo}}/blob/{{sha}}/{{file}}#L{{codeline}}" class="view-source icon-eye-open"> </a><h3 id="methods_buildcolumns">buildColumns(options)</h3>
32+
<li><a href="https://github.com/{{repo}}/blob/{{sha}}/{{file}}#L{{codeline}}" class="view-source icon-eye-open"> </a><h3 id="methods_buildcolumns">buildColumns(opts)</h3>
3333
<div class="buildcolumns"><div class="buildcolumns-page"><p>creates GridColumn objects from the columnDefinition. Calls each registered
3434
columnBuilder to further process the column</p>
35-
</div><h5 id="methods_buildcolumns_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>options</td><td><a href="" class="label type-hint type-hint-object">object</a></td><td><div class="buildcolumns-page"><p>An object contains options to use when building columns</p>
35+
</div><h5 id="methods_buildcolumns_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>opts</td><td><a href="" class="label type-hint type-hint-object">object</a></td><td><div class="buildcolumns-page"><p>An object contains options to use when building columns</p>
3636
<ul>
3737
<li><strong>orderByColumnDefs</strong>: defaults to <strong>false</strong>. When true, <code>buildColumns</code> will reorder existing columns according to the order within the column definitions.</li>
3838
</ul>
@@ -216,11 +216,11 @@ <h4 id="usage_parameters">Parameters</h4><table class="variables-matrix table ta
216216
</div></td></tr></tbody></table><h5 id="methods_processrowbuilders_returns">Returns</h5><table class="variables-matrix"><tr><td><a href="" class="label type-hint type-hint-gridrow">GridRow</a></td><td><div class="processrowbuilders-page"><p>the gridRow with all additional behavior added</p>
217217
</div></td></tr></table></div>
218218
</li>
219-
<li><a href="https://github.com/{{repo}}/blob/{{sha}}/{{file}}#L{{codeline}}" class="view-source icon-eye-open"> </a><h3 id="methods_processrowscallback">processRowsCallback(name)</h3>
219+
<li><a href="https://github.com/{{repo}}/blob/{{sha}}/{{file}}#L{{codeline}}" class="view-source icon-eye-open"> </a><h3 id="methods_processrowscallback">processRowsCallback(grid)</h3>
220220
<div class="processrowscallback"><div class="processrowscallback-page"><p>calls the row processors, specifically
221221
intended to reset the sorting when an edit is called,
222222
registered as a dataChangeCallback on uiGridConstants.dataChange.EDIT</p>
223-
</div><h5 id="methods_processrowscallback_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>name</td><td><a href="" class="label type-hint type-hint-string">string</a></td><td><div class="processrowscallback-page"><p>column name</p>
223+
</div><h5 id="methods_processrowscallback_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="processrowscallback-page"><p>The grid object.</p>
224224
</div></td></tr></tbody></table></div>
225225
</li>
226226
<li><a href="https://github.com/{{repo}}/blob/{{sha}}/{{file}}#L{{codeline}}" class="view-source icon-eye-open"> </a><h3 id="methods_queuegridrefresh">queueGridRefresh()</h3>
@@ -365,10 +365,10 @@ <h4 id="usage_parameters">Parameters</h4><table class="variables-matrix table ta
365365
<div class="updatecanvasheight"><div class="updatecanvasheight-page"><p>flags all render containers to update their canvas height</p>
366366
</div></div>
367367
</li>
368-
<li><a href="https://github.com/{{repo}}/blob/{{sha}}/{{file}}#L{{codeline}}" class="view-source icon-eye-open"> </a><h3 id="methods_updatefooterheightcallback">updateFooterHeightCallback(name)</h3>
368+
<li><a href="https://github.com/{{repo}}/blob/{{sha}}/{{file}}#L{{codeline}}" class="view-source icon-eye-open"> </a><h3 id="methods_updatefooterheightcallback">updateFooterHeightCallback(grid)</h3>
369369
<div class="updatefooterheightcallback"><div class="updatefooterheightcallback-page"><p>recalculates the footer height,
370370
registered as a dataChangeCallback on uiGridConstants.dataChange.OPTIONS</p>
371-
</div><h5 id="methods_updatefooterheightcallback_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>name</td><td><a href="" class="label type-hint type-hint-string">string</a></td><td><div class="updatefooterheightcallback-page"><p>column name</p>
371+
</div><h5 id="methods_updatefooterheightcallback_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="updatefooterheightcallback-page"><p>The grid object.</p>
372372
</div></td></tr></tbody></table></div>
373373
</li>
374374
</ul>

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
</h1>
66
<div><h2 id="description">Description</h2>
77
<div class="description"><div class="ui-grid-class-page ui-grid-class-gridapi-page"><p>GridApi provides the ability to register public methods events inside the grid and allow
8-
for other components to use the api via featureName.raise.methodName and featureName.on.eventName(function(args){}.
8+
for other components to use the api via featureName.raise.methodName and featureName.on.eventName(function(args) {}.
99
<br/>
1010
To listen to events, you must add a callback to gridOptions.onRegisterApi
1111
<pre class="prettyprint linenums">
12-
$scope.gridOptions.onRegisterApi = function(gridApi){
13-
gridApi.cellNav.on.navigate($scope,function(newRowCol, oldRowCol){
12+
$scope.gridOptions.onRegisterApi = function(gridApi) {
13+
gridApi.cellNav.on.navigate($scope,function(newRowCol, oldRowCol) {
1414
$log.log('navigation event');
1515
});
1616
};
@@ -49,8 +49,8 @@ <h4 id="usage_parameters">Parameters</h4><table class="variables-matrix table ta
4949
<pre class="prettyprint linenums">
5050
{featureName:
5151
{
52-
eventNameOne:function(args){},
53-
eventNameTwo:function(args){}
52+
eventNameOne:function(args) {},
53+
eventNameTwo:function(args) {}
5454
}
5555
}
5656
</pre>
@@ -65,16 +65,16 @@ <h4 id="usage_parameters">Parameters</h4><table class="variables-matrix table ta
6565
</div></td></tr><tr><td>_this</td><td><a href="" class="label type-hint type-hint-object">object</a></td><td><div class="registermethod-page"><p>binds callBackFn &#39;this&#39; to _this. Defaults to gridApi.grid</p>
6666
</div></td></tr></tbody></table></div>
6767
</li>
68-
<li><a href="https://github.com/{{repo}}/blob/{{sha}}/{{file}}#L{{codeline}}" class="view-source icon-eye-open"> </a><h3 id="methods_registermethodsfromobject">registerMethodsFromObject(eventObjectMap, _this)</h3>
68+
<li><a href="https://github.com/{{repo}}/blob/{{sha}}/{{file}}#L{{codeline}}" class="view-source icon-eye-open"> </a><h3 id="methods_registermethodsfromobject">registerMethodsFromObject(methodMap, _this)</h3>
6969
<div class="registermethodsfromobject"><div class="registermethodsfromobject-page"><p>Registers features and methods from a simple objectMap.
7070
eventObjectMap must be in this format (multiple features allowed)
7171
<br>
7272
{featureName:
7373
{
74-
methodNameOne:function(args){},
75-
methodNameTwo:function(args){}
74+
methodNameOne:function(args) {},
75+
methodNameTwo:function(args) {}
7676
}</p>
77-
</div><h5 id="methods_registermethodsfromobject_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>eventObjectMap</td><td><a href="" class="label type-hint type-hint-object">object</a></td><td><div class="registermethodsfromobject-page"><p>map of feature/event names</p>
77+
</div><h5 id="methods_registermethodsfromobject_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>methodMap</td><td><a href="" class="label type-hint type-hint-object">object</a></td><td><div class="registermethodsfromobject-page"><p>map of feature/event names</p>
7878
</div></td></tr><tr><td>_this</td><td><a href="" class="label type-hint type-hint-object">object</a></td><td><div class="registermethodsfromobject-page"><p>binds this to _this for all functions. Defaults to gridApi.grid</p>
7979
</div></td></tr></tbody></table></div>
8080
</li>
@@ -87,7 +87,7 @@ <h4 id="usage_parameters">Parameters</h4><table class="variables-matrix table ta
8787
</div></td></tr><tr><td>callBackFn</td><td><a href="" class="label type-hint type-hint-object">object</a></td><td><div class="ui-grid-class-page ui-grid-class-suppressevents-page"><p>function to execute</p>
8888
</div></td></tr></tbody></table><h4 id="methods_suppressevents_example">Example</h4>
8989
<div class="example"><div class="ui-grid-class-page ui-grid-class-suppressevents-page"><pre class="prettyprint linenums">
90-
var navigate = function (newRowCol, oldRowCol){
90+
var navigate = function (newRowCol, oldRowCol) {
9191
//do something on navigate
9292
}
9393

@@ -96,7 +96,7 @@ <h4 id="usage_parameters">Parameters</h4><table class="variables-matrix table ta
9696

9797
//call the scrollTo event and suppress our navigate listener
9898
//scrollTo will still raise the event for other listeners
99-
gridApi.suppressEvents(navigate, function(){
99+
gridApi.suppressEvents(navigate, function() {
100100
gridApi.cellNav.scrollTo(aRow, aCol);
101101
});
102102

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ <h4 id="usage_parameters">Parameters</h4><table class="variables-matrix table ta
5555
<li><a href="https://github.com/{{repo}}/blob/{{sha}}/{{file}}#L{{codeline}}" class="view-source icon-eye-open"> </a><h3 id="methods_setpropertyordefault">setPropertyOrDefault(colDef, propName, defaultValue)</h3>
5656
<div class="setpropertyordefault"><div class="setpropertyordefault-page"><p>Sets a property on the column using the passed in columnDef, and
5757
setting the defaultValue if the value cannot be found on the colDef</p>
58-
</div><h5 id="methods_setpropertyordefault_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>colDef</td><td><a href="" class="label type-hint type-hint-columndef">ColumnDef</a></td><td><div class="setpropertyordefault-page"><p>the column def to look in for the property value</p>
58+
</div><h5 id="methods_setpropertyordefault_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>colDef</td><td><a href="" class="label type-hint type-hint-gridcolumn">GridColumn</a></td><td><div class="setpropertyordefault-page"><p>the column def to look in for the property value</p>
5959
</div></td></tr><tr><td>propName</td><td><a href="" class="label type-hint type-hint-string">string</a></td><td><div class="setpropertyordefault-page"><p>the property name we&#39;d like to set</p>
6060
</div></td></tr><tr><td>defaultValue</td><td><a href="" class="label type-hint type-hint-object">object</a></td><td><div class="setpropertyordefault-page"><p>the value to use if the colDef doesn&#39;t provide the setting</p>
6161
</div></td></tr></tbody></table></div>
@@ -71,7 +71,7 @@ <h4 id="usage_parameters">Parameters</h4><table class="variables-matrix table ta
7171
<li><a href="https://github.com/{{repo}}/blob/{{sha}}/{{file}}#L{{codeline}}" class="view-source icon-eye-open"> </a><h3 id="methods_updatecolumndef">updateColumnDef(colDef, isNew)</h3>
7272
<div class="updatecolumndef"><div class="updatecolumndef-page"><p>Moves settings from the columnDef down onto the column,
7373
and sets properties as appropriate</p>
74-
</div><h5 id="methods_updatecolumndef_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>colDef</td><td><a href="" class="label type-hint type-hint-columndef">ColumnDef</a></td><td><div class="updatecolumndef-page"><p>the column def to look in for the property value</p>
74+
</div><h5 id="methods_updatecolumndef_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>colDef</td><td><a href="" class="label type-hint type-hint-gridcolumn">GridColumn</a></td><td><div class="updatecolumndef-page"><p>the column def to look in for the property value</p>
7575
</div></td></tr><tr><td>isNew</td><td><a href="" class="label type-hint type-hint-boolean">boolean</a></td><td><div class="updatecolumndef-page"><p>whether the column is being newly created, if not
7676
we&#39;re updating an existing column, and some items such as the sort shouldn&#39;t
7777
be copied down</p>
@@ -88,7 +88,7 @@ <h4 id="usage_parameters">Parameters</h4><table class="variables-matrix table ta
8888
<li><h3 id="properties_extrastyle">extraStyle</h3>
8989
<div class="extrastyle"><div class="extrastyle-page"><p>additional on this column.</p>
9090
</div><h4 id="properties_extrastyle_example">Example</h4>
91-
<div class="example"><div class="extrastyle-page"><pre class="prettyprint linenums">{extraStyle: {display:'table-cell'}}</pre>
91+
<div class="example"><div class="extrastyle-page"><pre class="prettyprint linenums">{extraStyle: {display: 'table-cell'}}</pre>
9292
</div></div>
9393
</div>
9494
</li>

docs/partials/api/ui.grid.class.GridOptions.columnDef.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
307307
<li>direction: values are <a href="#!/api/ui.grid.service:uiGridConstants#properties_asc">uiGridConstants.ASC</a>
308308
or <a href="#!/api/ui.grid.service:uiGridConstants#properties_desc">uiGridConstants.DESC</a></li>
309309
<li>ignoreSort: if set to true this sort is ignored (used by tree to manipulate the sort functionality)</li>
310-
<li>priority: says what order to sort the columns in (lower priority gets sorted first).</li>
310+
<li>priority: says what order to sort the columns in (lower priority gets sorted first). Starts from 0.</li>
311311
</ul>
312312
</div><h4 id="properties_sort_example">Example</h4>
313313
<div class="example"><div class="sort-page"><pre class="prettyprint linenums">
@@ -395,6 +395,6 @@
395395
</ul>
396396
</div>
397397
<h2 id="example">Example</h2>
398-
<div class="example"><div class="ui-grid-class-page ui-grid-class-gridoptions-columndef-page"><pre class="prettyprint linenums">{name:'field1', field: 'field1', filter: { term: 'xxx' }}</pre>
398+
<div class="example"><div class="ui-grid-class-page ui-grid-class-gridoptions-columndef-page"><pre class="prettyprint linenums">{name: 'field1', field: 'field1', filter: { term: 'xxx' }}</pre>
399399
</div></div>
400400
</div>

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

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ <h2 id="usage">Usage</h2>
6969
<a href="#!/api/ui.grid.class:GridOptions.columnDef">columnDef</a> section
7070
</br><em>field property can be used in place of name for backwards compatibility with 2.x</em></p>
7171
</div><h4 id="properties_columndefs_example">Example</h4>
72-
<div class="example"><div class="columndefs-page"><pre class="prettyprint linenums">var columnDefs = [{name:'field1'}, {name:'field2'}];</pre>
72+
<div class="example"><div class="columndefs-page"><pre class="prettyprint linenums">var columnDefs = [{name: 'field1'}, {name: 'field2'}];</pre>
7373
</div></div>
7474
</div>
7575
</li>
@@ -238,6 +238,16 @@ <h2 id="usage">Usage</h2>
238238
</div></div>
239239
</div>
240240
</li>
241+
<li><h3 id="properties_headerrowheight">headerRowHeight</h3>
242+
<div class="headerrowheight"><div class="headerrowheight-page"><p>The height of the header in pixels, defaults to 30.
243+
Although, we recommend that you alter header height with CSS rather than using this option:</p>
244+
<pre class="prettyprint linenums">
245+
.grid .ui-grid-header-cell {
246+
height: 60px;
247+
}
248+
</pre>
249+
</div></div>
250+
</li>
241251
<li><h3 id="properties_headertemplate">headerTemplate</h3>
242252
<div class="headertemplate"><div class="headertemplate-page"><p>Null by default. When provided, this setting uses a custom header
243253
template, rather than the default template. Can be set to either the name of a template file:
@@ -384,8 +394,8 @@ <h2 id="example">Example</h2>
384394
<p>To provide default options for all of the grids within your application, use an angular
385395
decorator to modify the GridOptions factory.
386396
<pre class="prettyprint linenums">
387-
app.config(function($provide){
388-
$provide.decorator('GridOptions',function($delegate){
397+
app.config(function($provide) {
398+
$provide.decorator('GridOptions',function($delegate) {
389399
var gridOptions;
390400
gridOptions = angular.copy($delegate);
391401
gridOptions.initialize = function(options) {

docs/partials/api/ui.grid.core.api.PublicApi.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
columns with sorts on them, in priority order.</p>
208208
</div></td></tr></tbody></table><h4 id="methods_sortchanged_example">Example</h4>
209209
<div class="example"><div class="sortchanged-page"><pre class="prettyprint linenums">
210-
gridApi.core.on.sortChanged( $scope, function(grid, sortColumns){
210+
gridApi.core.on.sortChanged( $scope, function(grid, sortColumns) {
211211
// do something
212212
});
213213
</pre>
@@ -225,7 +225,7 @@
225225
<div class="example"><div class="sorthandlenulls-page"><pre class="prettyprint linenums">
226226
mySortFn = function(a, b) {
227227
var nulls = $scope.gridApi.core.sortHandleNulls(a, b);
228-
if ( nulls !== null ){
228+
if ( nulls !== null ) {
229229
return nulls;
230230
} else {
231231
// your code for sorting here

docs/partials/api/ui.grid.directive.uiGridColumnMenu.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h2 id="usage">Usage</h2>
2525
to the right place whilst hidden (it will make an assumption on menu width),
2626
then it asks the menu to show (it will animate), then it repositions the menu again
2727
once we can calculate it&#39;s size.</p>
28-
</div><h5 id="methods_showmenu_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>column</td><td><a href="" class="label type-hint type-hint-gridcol">GridCol</a></td><td><div class="showmenu-page"><p>the column we want to position below</p>
28+
</div><h5 id="methods_showmenu_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>column</td><td><a href="" class="label type-hint type-hint-gridcolumn">GridColumn</a></td><td><div class="showmenu-page"><p>the column we want to position below</p>
2929
</div></td></tr><tr><td>$columnElement</td><td><a href="" class="label type-hint type-hint-element">element</a></td><td><div class="showmenu-page"><p>the column element we want to position below</p>
3030
</div></td></tr></tbody></table></div>
3131
</li>

0 commit comments

Comments
 (0)