I thouht that this might be interesting for someone who has larger table to display in the table view.
You can set the records per page , but this may lead to a long scrolling list where, when are in the middle of the table, it might be difficult to scroll to the right.
Hence if you add this
Code: Select all
<style>
.table-responsive { overflow: auto; width: 100%; height: 66vh; }
.table th { background:#eef; }
</style>
<script>
$j('div.table-responsive').on('scroll', function() {
$j('thead', this).css('transform', 'translateY('+ this.scrollTop +'px)');
});
</script>
You may need to adjust the hight to fit your environment.
regards
Pascal