Skip to content

Commit

Permalink
Merge pull request #2282 from mathiasdose/issue2281
Browse files Browse the repository at this point in the history
Update pinning tutorial
  • Loading branch information
swalters committed Dec 5, 2014
2 parents ba6be29 + ed01411 commit d526874
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 d526874

Please sign in to comment.