-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing panel scrolling based on ctrl height (#22)
- Loading branch information
1 parent
f22e976
commit a8dd65e
Showing
5 changed files
with
109 additions
and
87 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,50 @@ | ||
<div class="boom-table"> | ||
<div data-ng-if="ctrl.panel.error"> | ||
<h4 class="text-warning">{{ctrl.panel.error.name}}</h4> | ||
<p ng-bind-html="ctrl.panel.error.message"></p> | ||
</div> | ||
<div data-ng-if="!ctrl.panel.error && ctrl.panel.groupedData"> | ||
<table class="table-panel-table"> | ||
<thead> | ||
<tr> | ||
<th style="padding:4px;text-align:center">{{ctrl.panel.default_title_for_rows}}</th> | ||
<th style="padding:4px;text-align:center" data-ng-repeat="col in ctrl.panel.cols">{{col}}</th> | ||
</tr> | ||
</thead> | ||
<tr data-ng-repeat="data in ctrl.panel.groupedData"> | ||
<td style="padding:4px;">{{data.row}}</td> | ||
<td style="padding:4px;background-color:{{col.bgColor}};" data-ng-repeat="col in data.cols">{{col.displayValue}}</td> | ||
</tr> | ||
</table> | ||
</div> | ||
<div data-ng-if="ctrl.panel.debug_mode === true" class="debug"> | ||
<h5 class="text-warning">WARNING: Panel running in debug mode </h5> | ||
<div data-ng-if="ctrl.panel.data && ctrl.panel.data.length >0"> | ||
<table class="table-panel-table"> | ||
<thead> | ||
<tr> | ||
<th style="padding:4px;text-align:center">Metric</th> | ||
<th style="padding:4px;text-align:center">Pattern</th> | ||
<th style="padding:4px;text-align:center">Value</th> | ||
<th style="padding:4px;text-align:center">Row Name</th> | ||
<th style="padding:4px;text-align:center">Col Name</th> | ||
<th style="padding:4px;text-align:center">Thresholds</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr data-ng-repeat="data in ctrl.panel.data"> | ||
<td style="padding:4px;" width="40%">{{data.alias}}</td> | ||
<td style="padding:4px;">{{data.pattern.pattern || "Default"}}</td> | ||
<td style="padding:4px;background-color:{{data.bgColor}}">{{data.displayValue}}</td> | ||
<td style="padding:4px;">{{data.row_name}}</td> | ||
<td style="padding:4px;">{{data.col_name}}</td> | ||
<td style="padding:4px;">{{data.thresholds}}</td> | ||
<div data-ng-if="ctrl.panel.debug_mode === true" class="debug"> | ||
<h5 class="text-warning">WARNING: Panel running in debug mode </h5> | ||
</div> | ||
<div data-ng-if="ctrl.panel.error"> | ||
<h4 class="text-warning">{{ctrl.panel.error.name}}</h4> | ||
<p ng-bind-html="ctrl.panel.error.message"></p> | ||
</div> | ||
<div data-ng-if="!ctrl.panel.error && ctrl.panel.groupedData"> | ||
<div class="table-panel-scroll" style="overflow:auto;"> | ||
<table class="table-panel-table"> | ||
<thead> | ||
<tr> | ||
<th style="padding:4px;text-align:center">{{ctrl.panel.default_title_for_rows}}</th> | ||
<th style="padding:4px;text-align:center" data-ng-repeat="col in ctrl.panel.cols">{{col}}</th> | ||
</tr> | ||
</thead> | ||
<tr data-ng-repeat="data in ctrl.panel.groupedData"> | ||
<td style="padding:4px;">{{data.row}}</td> | ||
<td style="padding:4px;background-color:{{col.bgColor}};" data-ng-repeat="col in data.cols">{{col.displayValue}}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</table> | ||
<div data-ng-if="ctrl.panel.debug_mode === true" class="debug"> | ||
<h5 class="text-warning">WARNING: Panel running in debug mode </h5> | ||
<table class="table-panel-table"> | ||
<thead> | ||
<tr> | ||
<th style="padding:4px;text-align:center">Metric</th> | ||
<th style="padding:4px;text-align:center">Pattern</th> | ||
<th style="padding:4px;text-align:center">Value</th> | ||
<th style="padding:4px;text-align:center">Row Name</th> | ||
<th style="padding:4px;text-align:center">Col Name</th> | ||
<th style="padding:4px;text-align:center">Thresholds</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr data-ng-repeat="data in ctrl.panel.data"> | ||
<td style="padding:4px;" width="40%">{{data.alias}}</td> | ||
<td style="padding:4px;">{{data.pattern.pattern || "Default"}}</td> | ||
<td style="padding:4px;background-color:{{data.bgColor}}">{{data.displayValue}}</td> | ||
<td style="padding:4px;">{{data.row_name}}</td> | ||
<td style="padding:4px;">{{data.col_name}}</td> | ||
<td style="padding:4px;">{{data.thresholds}}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,50 @@ | ||
<div class="boom-table"> | ||
<div data-ng-if="ctrl.panel.error"> | ||
<h4 class="text-warning">{{ctrl.panel.error.name}}</h4> | ||
<p ng-bind-html="ctrl.panel.error.message"></p> | ||
</div> | ||
<div data-ng-if="!ctrl.panel.error && ctrl.panel.groupedData"> | ||
<table class="table-panel-table"> | ||
<thead> | ||
<tr> | ||
<th style="padding:4px;text-align:center">{{ctrl.panel.default_title_for_rows}}</th> | ||
<th style="padding:4px;text-align:center" data-ng-repeat="col in ctrl.panel.cols">{{col}}</th> | ||
</tr> | ||
</thead> | ||
<tr data-ng-repeat="data in ctrl.panel.groupedData"> | ||
<td style="padding:4px;">{{data.row}}</td> | ||
<td style="padding:4px;background-color:{{col.bgColor}};" data-ng-repeat="col in data.cols">{{col.displayValue}}</td> | ||
</tr> | ||
</table> | ||
</div> | ||
<div data-ng-if="ctrl.panel.debug_mode === true" class="debug"> | ||
<h5 class="text-warning">WARNING: Panel running in debug mode </h5> | ||
<div data-ng-if="ctrl.panel.data && ctrl.panel.data.length >0"> | ||
<table class="table-panel-table"> | ||
<thead> | ||
<tr> | ||
<th style="padding:4px;text-align:center">Metric</th> | ||
<th style="padding:4px;text-align:center">Pattern</th> | ||
<th style="padding:4px;text-align:center">Value</th> | ||
<th style="padding:4px;text-align:center">Row Name</th> | ||
<th style="padding:4px;text-align:center">Col Name</th> | ||
<th style="padding:4px;text-align:center">Thresholds</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr data-ng-repeat="data in ctrl.panel.data"> | ||
<td style="padding:4px;" width="40%">{{data.alias}}</td> | ||
<td style="padding:4px;">{{data.pattern.pattern || "Default"}}</td> | ||
<td style="padding:4px;background-color:{{data.bgColor}}">{{data.displayValue}}</td> | ||
<td style="padding:4px;">{{data.row_name}}</td> | ||
<td style="padding:4px;">{{data.col_name}}</td> | ||
<td style="padding:4px;">{{data.thresholds}}</td> | ||
<div data-ng-if="ctrl.panel.debug_mode === true" class="debug"> | ||
<h5 class="text-warning">WARNING: Panel running in debug mode </h5> | ||
</div> | ||
<div data-ng-if="ctrl.panel.error"> | ||
<h4 class="text-warning">{{ctrl.panel.error.name}}</h4> | ||
<p ng-bind-html="ctrl.panel.error.message"></p> | ||
</div> | ||
<div data-ng-if="!ctrl.panel.error && ctrl.panel.groupedData"> | ||
<div class="table-panel-scroll" style="overflow:auto;"> | ||
<table class="table-panel-table"> | ||
<thead> | ||
<tr> | ||
<th style="padding:4px;text-align:center">{{ctrl.panel.default_title_for_rows}}</th> | ||
<th style="padding:4px;text-align:center" data-ng-repeat="col in ctrl.panel.cols">{{col}}</th> | ||
</tr> | ||
</thead> | ||
<tr data-ng-repeat="data in ctrl.panel.groupedData"> | ||
<td style="padding:4px;">{{data.row}}</td> | ||
<td style="padding:4px;background-color:{{col.bgColor}};" data-ng-repeat="col in data.cols">{{col.displayValue}}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</table> | ||
<div data-ng-if="ctrl.panel.debug_mode === true" class="debug"> | ||
<h5 class="text-warning">WARNING: Panel running in debug mode </h5> | ||
<table class="table-panel-table"> | ||
<thead> | ||
<tr> | ||
<th style="padding:4px;text-align:center">Metric</th> | ||
<th style="padding:4px;text-align:center">Pattern</th> | ||
<th style="padding:4px;text-align:center">Value</th> | ||
<th style="padding:4px;text-align:center">Row Name</th> | ||
<th style="padding:4px;text-align:center">Col Name</th> | ||
<th style="padding:4px;text-align:center">Thresholds</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr data-ng-repeat="data in ctrl.panel.data"> | ||
<td style="padding:4px;" width="40%">{{data.alias}}</td> | ||
<td style="padding:4px;">{{data.pattern.pattern || "Default"}}</td> | ||
<td style="padding:4px;background-color:{{data.bgColor}}">{{data.displayValue}}</td> | ||
<td style="padding:4px;">{{data.row_name}}</td> | ||
<td style="padding:4px;">{{data.col_name}}</td> | ||
<td style="padding:4px;">{{data.thresholds}}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |