Skip to content

Commit 14767cb

Browse files
committed
Merge pull request tariqbuilds#378 from xied5531/master
Add width and height attr for table plugin
2 parents 50ae4ab + 55faae7 commit 14767cb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

js/linuxDash.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,9 @@
330330
scope: {
331331
heading: '@',
332332
info: '@',
333-
moduleName: '@'
333+
moduleName: '@',
334+
width: '@',
335+
height: '@'
334336
},
335337
templateUrl: 'templates/app/table-data-plugin.html',
336338
link: function(scope, element) {

templates/app/table-data-plugin.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<div class="animate" ng-show="tableRows">
1010

11-
<table class="table-data-plugin">
11+
<table class="table-data-plugin" width="{{ width }}" height="{{ height }}">
1212
<thead>
1313
<tr class="table-data-filter-container" ng-show="tableRows.length">
1414
<th colspan="{{ tableHeaders.length }}" class="filter-container">

0 commit comments

Comments
 (0)