@@ -66,7 +66,8 @@ class BootstrapTable extends PropsBaseResolver(Component) {
6666 rowEvents,
6767 selectRow,
6868 expandRow,
69- cellEdit
69+ cellEdit,
70+ filterPosition
7071 } = this . props ;
7172
7273 const tableWrapperClass = cs ( 'react-bootstrap-table' , wrapperClasses ) ;
@@ -94,17 +95,21 @@ class BootstrapTable extends PropsBaseResolver(Component) {
9495 sortField = { this . props . sortField }
9596 sortOrder = { this . props . sortOrder }
9697 onSort = { this . props . onSort }
98+ onFilter = { this . props . onFilter }
99+ currFilters = { this . props . currFilters }
100+ onExternalFilter = { this . props . onExternalFilter }
97101 selectRow = { selectRow }
98102 expandRow = { expandRow }
103+ filterPosition = { filterPosition }
99104 />
100- { hasFilters && (
105+ { hasFilters && filterPosition !== Const . FILTERS_POSITION_INLINE && (
101106 < Filters
102107 columns = { columns }
103108 className = { this . props . filtersClasses }
104109 onSort = { this . props . onSort }
105110 onFilter = { this . props . onFilter }
106111 currFilters = { this . props . currFilters }
107- position = { this . props . filtersPosition }
112+ filterPosition = { this . props . filterPosition }
108113 onExternalFilter = { this . props . onExternalFilter }
109114 />
110115 ) }
@@ -211,8 +216,9 @@ BootstrapTable.propTypes = {
211216 rowClasses : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . func ] ) ,
212217 headerClasses : PropTypes . string ,
213218 filtersClasses : PropTypes . string ,
214- filtersPosition : PropTypes . oneOf ( [
219+ filterPosition : PropTypes . oneOf ( [
215220 Const . FILTERS_POSITION_TOP ,
221+ Const . FILTERS_POSITION_INLINE ,
216222 Const . FILTERS_POSITION_BOTTOM
217223 ] ) ,
218224 footerClasses : PropTypes . string ,
@@ -256,7 +262,8 @@ BootstrapTable.defaultProps = {
256262 cellEdit : {
257263 mode : null ,
258264 nonEditableRows : [ ]
259- }
265+ } ,
266+ filterPosition : Const . FILTERS_POSITION_INLINE
260267} ;
261268
262269export default BootstrapTable ;
0 commit comments