Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
...
Navigate through UI Builder > Settings > Theme > Advanced > Custom JavaScript. Enter the sample code below:
Code Block | ||
---|---|---|
| ||
function initializeStickyHeaders() { $('table.responsivetable').stickyTableHeaders({ fixedOffset: $('.navbar').height() }); } $(function(){ // Initialize sticky table headers on page load initializeStickyHeaders(); // Re-run initialization code when custom event 'page_loaded' is triggered $(document).on('page_loaded', function() { initializeStickyHeaders(); }); }); |
Load the library with <script> tag and a CDN(Content Delivery Network) link provided from github.com/jmosbech/StickyTableHeaders in the Sub Header.
Code Block | ||
---|---|---|
| ||
<script src="https://unpkg.com/sticky-table-headers"></script> |
Header The header will freeze on the top while overlapping and will overlap through the data in the list.
...
Figure 1 Header Freezed when scrolling data in the list
Warning |
---|
When using the library to freeze the header, do note that the header will be responsive towards the table's total width. Thus, when there is are too much many columns in the data list, the header will start to "spill out": |
...
Figure 2 Header "spilled out" due to excessive columns in list bodythe list body
View file | ||||
---|---|---|---|---|
|