Last active
April 2, 2020 17:15
-
-
Save kdssoftware/e84b12f2f6e8aa57091fc9b3e04e634d to your computer and use it in GitHub Desktop.
EBCS fixed 2nd header
This file contains hidden or 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
.headingtable { | |
top: 80px !important; | |
background-color: #c0c0c0 !important; //dit omdat het black theme de header overschrijft | |
} |
This file contains hidden or 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
var childeren = $('table#dataScherm_grd tbody tr.myheader')[0].cells; | |
$('table#dataScherm_grd tbody tr.myheader').remove(); | |
let thead = '<thead class="myheader">'; | |
for(var c of childeren){ | |
thead+= "<td "+ ((c.className)?"class=\""+c.className+"\"":"")+">"+c.innerText+"</td>"; | |
} | |
thead += "</thead>"; | |
$('table#dataScherm_grd').prepend(thead); | |
$("table#dataScherm_grd thead.myheader").addClass("scrollfixed"); | |
$("table#dataScherm_grd thead.myheader").addClass("headingtable"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment