Skip to content

Commit 2d11a69

Browse files
committed
Fixed pfTable and pfToolbar ngdoc examples
1 parent ca05193 commit 2d11a69

File tree

2 files changed

+15
-19
lines changed

2 files changed

+15
-19
lines changed

src/table/tableview/examples/table-view-with-toolbar.js

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,18 @@
5050
</pf-table-view>
5151
</div>
5252
<div class="col-md-12">
53-
<form role="form"
54-
<div class="form-group">
53+
<div class="form-group">
54+
<label class="checkbox-inline">
55+
<input type="checkbox" ng-model="tableConfig.itemsAvailable" ng-change="updateItemsAvailable()">Items Available</input>
56+
</label>
57+
<!-- //[WIP] issues dynamically changing displayLength and turning on/off pagination
5558
<label class="checkbox-inline">
56-
<input type="checkbox" ng-model="tableConfig.itemsAvailable" ng-change="updateItemsAvailable()">Items Available</input>
59+
<input type="checkbox" ng-model="usePagination" ng-change="togglePagination()">Use Pagination</input>
5760
</label>
58-
<!-- //[WIP] issues dynamically changing displayLength and turning on/off pagination
59-
<label class="checkbox-inline">
60-
<input type="checkbox" ng-model="usePagination" ng-change="togglePagination()">Use Pagination</input>
61-
</label>
62-
<label>
63-
<input ng-model="dtOptions.displayLength" ng-disabled="!usePagination" style="width: 24px; padding-left: 6px;"> # Rows Per Page</input>
64-
</label> --!>
65-
</div>
66-
</form>
61+
<label>
62+
<input ng-model="dtOptions.displayLength" ng-disabled="!usePagination" style="width: 24px; padding-left: 6px;"> # Rows Per Page</input>
63+
</label> --!>
64+
</div>
6765
</div>
6866
<hr class="col-md-12">
6967
<div class="col-md-12">

src/toolbars/examples/toolbar.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,11 @@
124124
</pf-table-view>
125125
</div>
126126
<div class="col-md-12" style="padding-top: 12px;">
127-
<form role="form"
128-
<div class="form-group">
129-
<label class="checkbox-inline">
130-
<input type="checkbox" ng-model="listConfig.itemsAvailable" ng-change="updateItemsAvailable()">Items Available</input>
131-
</label>
132-
</div>
133-
</form>
127+
<div class="form-group">
128+
<label class="checkbox-inline">
129+
<input type="checkbox" ng-model="listConfig.itemsAvailable" ng-change="updateItemsAvailable()">Items Available</input>
130+
</label>
131+
</div>
134132
</div>
135133
<hr class="col-md-12">
136134
<div class="col-md-12">

0 commit comments

Comments
 (0)