Skip to content

Commit

Permalink
Update pinning tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
sickan90 committed Dec 5, 2014
1 parent ba6be29 commit ed01411
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions misc/tutorial/203_pinning.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

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.

It is also possible to disable pinning on column level. Note the 'id' column definition in the example below.

@example
<example module="app">
Expand All @@ -14,7 +15,7 @@ The pinning feature allows the user to pin a column to left or right. To enable,
$scope.gridOptions = {};

$scope.gridOptions.columnDefs = [
{ name:'id', width:50 },
{ name:'id', width:50, enablePinning:false },
{ name:'name', width:100, pinnedLeft:true },
{ name:'age', width:100, pinnedRight:true },
{ name:'address.street', width:150 },
Expand Down Expand Up @@ -47,4 +48,4 @@ The pinning feature allows the user to pin a column to left or right. To enable,
height: 400px;
}
</file>
</example>
</example>

0 comments on commit ed01411

Please sign in to comment.