react-bootstrap-table-next
Advanced tools
Comparing version 1.1.4 to 1.2.0
@@ -211,2 +211,3 @@ 'use strict'; | ||
clickToEdit: _propTypes2.default.bool, | ||
hideSelectAll: _propTypes2.default.bool, | ||
onSelect: _propTypes2.default.func, | ||
@@ -231,2 +232,3 @@ onSelectAll: _propTypes2.default.func, | ||
showExpandColumn: _propTypes2.default.bool, | ||
onlyOneExpanding: _propTypes2.default.bool, | ||
expandColumnRenderer: _propTypes2.default.func, | ||
@@ -233,0 +235,0 @@ expandHeaderColumnRenderer: _propTypes2.default.func |
@@ -49,3 +49,5 @@ 'use strict'; | ||
keyField = _this$props.keyField, | ||
onExpand = _this$props.expandRow.onExpand; | ||
_this$props$expandRow = _this$props.expandRow, | ||
onExpand = _this$props$expandRow.onExpand, | ||
onlyOneExpanding = _this$props$expandRow.onlyOneExpanding; | ||
@@ -56,3 +58,3 @@ | ||
if (expanded) { | ||
currExpanded.push(rowKey); | ||
if (onlyOneExpanding) currExpanded = [rowKey];else currExpanded.push(rowKey); | ||
} else { | ||
@@ -59,0 +61,0 @@ currExpanded = currExpanded.filter(function (value) { |
@@ -102,3 +102,3 @@ 'use strict'; | ||
if (onSelectAll) { | ||
onSelectAll(!isUnSelect, dataOperator.getSelectedRows(data, keyField, currSelected), e); | ||
onSelectAll(!isUnSelect, dataOperator.getSelectedRows(data, keyField, isUnSelect ? _this.state.selected : currSelected), e); | ||
} | ||
@@ -105,0 +105,0 @@ |
@@ -73,2 +73,3 @@ 'use strict'; | ||
cellStyle = _utils2.default.isFunction(headerStyle) ? headerStyle(column, index) : headerStyle; | ||
cellStyle = cellStyle ? _extends({}, cellStyle) : cellStyle; | ||
} | ||
@@ -75,0 +76,0 @@ |
@@ -25,3 +25,3 @@ 'use strict'; | ||
var events = ['onClick', 'onDoubleClick', 'onMouseEnter', 'onMouseLeave']; | ||
var events = ['onClick', 'onDoubleClick', 'onMouseEnter', 'onMouseLeave', 'onContextMenu']; | ||
@@ -28,0 +28,0 @@ exports.default = function (ExtendBase) { |
@@ -110,4 +110,8 @@ 'use strict'; | ||
checkedStatus = _props3.checkedStatus, | ||
selectionHeaderRenderer = _props3.selectionHeaderRenderer; | ||
selectionHeaderRenderer = _props3.selectionHeaderRenderer, | ||
hideSelectAll = _props3.hideSelectAll; | ||
if (hideSelectAll) { | ||
return _react2.default.createElement('th', { 'data-row-selection': true }); | ||
} | ||
@@ -160,4 +164,5 @@ var checked = checkedStatus === CHECKBOX_STATUS_CHECKED; | ||
onAllRowsSelect: _propTypes2.default.func, | ||
hideSelectAll: _propTypes2.default.bool, | ||
selectionHeaderRenderer: _propTypes2.default.func | ||
}; | ||
exports.default = SelectionHeaderCell; |
{ | ||
"name": "react-bootstrap-table-next", | ||
"version": "1.1.4", | ||
"version": "1.2.0", | ||
"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
733790
8665