table-options Attribute: data-header-style="headerStyle"

1 day ago 2
ARTICLE AD BOX

I use table-options Attribute: data-header-style="headerStyle", In the example classes: 'my-header' does not work
I used the following code from https://live.bootstrap-table.com/ , and it doesn't work: classes: 'my-header'

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/bootstrap-table.min.css"> <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/bootstrap-table.min.js"></script> <table id="table" data-toggle="table" data-height="460" data-header-style="headerStyle" data-url="json/data1.json" > <thead> <tr> <th data-field="id"> Item ID </th> <th data-field="name"> Item Name </th> <th data-field="price"> Item Price </th> </tr> </thead> </table> <script> function headerStyle(column) { return { css: { 'font-weight': 'normal', color : 'blue' }, classes: 'my-header' } } </script> <style> .my-header { background-color: aqua; } </style>
Read Entire Article