Skip to content

Commit ba7ca8e

Browse files
committed
Fixed Table Header
1 parent f91b696 commit ba7ca8e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -941,6 +941,17 @@ angular.module('zeppelinWebApp')
941941

942942
var renderTable = function() {
943943
var html = '';
944+
945+
html += '<table class="table table-hover table-condensed" style="position: absolute;">';
946+
html += ' <thead>';
947+
html += ' <tr style="background-color: #F6F6F6; font-weight: bold;">';
948+
for (var c in $scope.paragraph.result.columnNames) {
949+
html += '<th>'+$scope.paragraph.result.columnNames[c].name+'</th>';
950+
}
951+
html += ' </tr>';
952+
html += ' </thead>';
953+
html += '</table>';
954+
944955
html += '<table class="table table-hover table-condensed">';
945956
html += ' <thead>';
946957
html += ' <tr style="background-color: #F6F6F6; font-weight: bold;">';

0 commit comments

Comments
 (0)