Skip to content

Instantly share code, notes, and snippets.

@kdssoftware
Last active April 2, 2020 17:15
Show Gist options
  • Save kdssoftware/e84b12f2f6e8aa57091fc9b3e04e634d to your computer and use it in GitHub Desktop.
Save kdssoftware/e84b12f2f6e8aa57091fc9b3e04e634d to your computer and use it in GitHub Desktop.
EBCS fixed 2nd header
.headingtable {
top: 80px !important;
background-color: #c0c0c0 !important; //dit omdat het black theme de header overschrijft
}
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