File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
docs/_i18n/en/documentation Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 130
130
<td>none</td>
131
131
<td>Fires after the table body is rendered and available in the DOM</td>
132
132
</tr>
133
+ <tr>
134
+ <td>onPostHeader</td>
135
+ <td>post-header.bs.table</td>
136
+ <td>none</td>
137
+ <td>Fires after the table header is rendered and availble in the DOM</td>
133
138
</tbody>
134
139
</table >
Original file line number Diff line number Diff line change 195
195
onPageChange : function ( number , size ) { return false ; } ,
196
196
onSearch : function ( text ) { return false ; } ,
197
197
onPreBody : function ( data ) { return false ; } ,
198
- onPostBody : function ( ) { return false ; }
198
+ onPostBody : function ( ) { return false ; } ,
199
+ onPostHeader : function ( ) { return false ; }
199
200
} ;
200
201
201
202
BootstrapTable . LOCALES = [ ] ;
270
271
'page-change.bs.table' : 'onPageChange' ,
271
272
'search.bs.table' : 'onSearch' ,
272
273
'pre-body.bs.table' : 'onPreBody' ,
273
- 'post-body.bs.table' : 'onPostBody'
274
+ 'post-body.bs.table' : 'onPostBody' ,
275
+ 'post-header.bs.table' : 'onPostHeader'
274
276
} ;
275
277
276
278
BootstrapTable . prototype . init = function ( ) {
1329
1331
$fixedBody . off ( 'scroll' ) . on ( 'scroll' , function ( ) {
1330
1332
$fixedHeader . scrollLeft ( $ ( this ) . scrollLeft ( ) ) ;
1331
1333
} ) ;
1334
+
1335
+ that . trigger ( 'post-header' ) ;
1332
1336
} ) ;
1333
1337
} ;
1334
1338
1386
1390
1387
1391
if ( this . options . showHeader && this . options . height ) {
1388
1392
this . resetHeader ( ) ;
1393
+ } else {
1394
+ this . trigger ( 'post-header' ) ;
1389
1395
}
1390
1396
1391
1397
if ( this . options . height && this . options . showHeader ) {
You can’t perform that action at this time.
0 commit comments