react-bootstrap-table-next
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -108,3 +108,7 @@ 'use strict'; | ||
return function (rootProps, cellEditProps, filterProps, searchProps, sortProps, paginationProps, expandProps, selectionProps) { | ||
return _react2.default.createElement(Base, _extends({}, _this2.props, selectionProps, sortProps, cellEditProps, filterProps, searchProps, paginationProps, expandProps, { | ||
return _react2.default.createElement(Base, _extends({ | ||
ref: function ref(n) { | ||
return _this2.table = n; | ||
} | ||
}, _this2.props, selectionProps, sortProps, cellEditProps, filterProps, searchProps, paginationProps, expandProps, { | ||
data: rootProps.getData(filterProps, searchProps, sortProps, paginationProps) | ||
@@ -123,2 +127,5 @@ })); | ||
_extends({}, baseProps, { | ||
ref: function ref(n) { | ||
return _this3.selectionContext = n; | ||
}, | ||
selectRow: _this3.props.selectRow, | ||
@@ -146,2 +153,5 @@ data: rootProps.getData(filterProps, searchProps, sortProps, paginationProps) | ||
_extends({}, baseProps, { | ||
ref: function ref(n) { | ||
return _this4.rowExpandContext = n; | ||
}, | ||
expandRow: _this4.props.expandRow, | ||
@@ -148,0 +158,0 @@ data: rootProps.getData(filterProps, searchProps, sortProps, paginationProps) |
@@ -51,2 +51,3 @@ 'use strict'; | ||
sort = column.sort, | ||
sortCaret = column.sortCaret, | ||
filter = column.filter, | ||
@@ -94,3 +95,3 @@ filterRenderer = column.filterRenderer, | ||
if (sorting) { | ||
sortSymbol = _react2.default.createElement(_caret2.default, { order: sortOrder }); | ||
sortSymbol = sortCaret ? sortCaret(sortOrder, column) : _react2.default.createElement(_caret2.default, { order: sortOrder }); | ||
@@ -102,3 +103,3 @@ // append customized classes or style if table was sorting based on the current column. | ||
} else { | ||
sortSymbol = _react2.default.createElement(_symbol2.default, null); | ||
sortSymbol = sortCaret ? sortCaret(undefined, column) : _react2.default.createElement(_symbol2.default, null); | ||
} | ||
@@ -166,2 +167,3 @@ } | ||
sortOrder: _propTypes2.default.oneOf([_const2.default.SORT_ASC, _const2.default.SORT_DESC]), | ||
sortCaret: _propTypes2.default.func, | ||
isLastSorting: _propTypes2.default.bool, | ||
@@ -168,0 +170,0 @@ onFilter: _propTypes2.default.func, |
{ | ||
"name": "react-bootstrap-table-next", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Next generation of react-bootstrap-table", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
735835
8692