@@ -328,7 +328,11 @@ class BootstrapTable extends Component {
328328 const toolBar = this . renderToolBar ( ) ;
329329 const tableFilter = this . renderTableFilter ( columns ) ;
330330 const isSelectAll = this . isSelectAll ( ) ;
331- const colGroups = Util . renderColGroup ( columns , this . props . selectRow ) ;
331+ const expandColumnOptions = this . props . expandColumnOptions ;
332+ if ( typeof expandColumnOptions . expandColumnBeforeSelectColumn === 'undefined' ) {
333+ expandColumnOptions . expandColumnBeforeSelectColumn = true ;
334+ }
335+ const colGroups = Util . renderColGroup ( columns , this . props . selectRow , expandColumnOptions ) ;
332336 let sortIndicator = this . props . options . sortIndicator ;
333337 if ( typeof this . props . options . sortIndicator === 'undefined' ) sortIndicator = true ;
334338 const { paginationPosition = Const . PAGINATION_POS_BOTTOM } = this . props . options ;
@@ -362,7 +366,10 @@ class BootstrapTable extends Component {
362366 condensed = { this . props . condensed }
363367 isFiltered = { this . filter ? true : false }
364368 isSelectAll = { isSelectAll }
365- reset = { this . state . reset } >
369+ reset = { this . state . reset }
370+ expandColumnVisible = { expandColumnOptions . expandColumnVisible }
371+ expandColumnComponent = { expandColumnOptions . expandColumnComponent }
372+ expandColumnBeforeSelectColumn = { expandColumnOptions . expandColumnBeforeSelectColumn } >
366373 { this . props . children }
367374 </ TableHeader >
368375 < TableBody ref = 'body'
@@ -382,6 +389,7 @@ class BootstrapTable extends Component {
382389 keyField = { this . store . getKeyField ( ) }
383390 condensed = { this . props . condensed }
384391 selectRow = { this . props . selectRow }
392+ expandColumnOptions = { this . props . expandColumnOptions }
385393 cellEdit = { this . props . cellEdit }
386394 selectedRowKeys = { this . state . selectedRowKeys }
387395 onRowClick = { this . handleRowClick }
@@ -1365,12 +1373,23 @@ BootstrapTable.propTypes = {
13651373 csvFileName : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . func ] ) ,
13661374 ignoreSinglePage : PropTypes . bool ,
13671375 expandableRow : PropTypes . func ,
1368- expandComponent : PropTypes . func
1376+ expandComponent : PropTypes . func ,
1377+ expandColumnOptions : PropTypes . shape ( {
1378+ columnWidth : PropTypes . oneOfType ( [ PropTypes . number , PropTypes . string ] ) ,
1379+ expandColumnVisible : PropTypes . bool ,
1380+ expandColumnComponent : PropTypes . func ,
1381+ expandColumnBeforeSelectColumn : PropTypes . bool
1382+ } )
13691383} ;
13701384BootstrapTable . defaultProps = {
13711385 scrollTop : undefined ,
13721386 expandComponent : undefined ,
13731387 expandableRow : undefined ,
1388+ expandColumnOptions : {
1389+ expandColumnVisible : false ,
1390+ expandColumnComponent : undefined ,
1391+ expandColumnBeforeSelectColumn : true
1392+ } ,
13741393 height : '100%' ,
13751394 maxHeight : undefined ,
13761395 striped : false ,
0 commit comments