Hi, I am utilizing jQuery within an Angular 4 TypeScript project. I have attempted to use the following two events to fix the table header, but unfortunately, it is not working as expected.
ngOnInit(): void {
$(document).ready(function() {
$("#table").tableHeadFixer({"head" : false, "left" : 1});
});
}
ngAfterViewInit() {
$(document).ready(function() {
$("#table").tableHeadFixer({"head" : false, "left" : 1});
});
}
After the table has been rendered, executing the command below in the browser console freezes the table header:
$("#table").tableHeadFixer({"head" : false, "left" : 1});
If anyone could offer assistance on this issue, it would be greatly appreciated.