fast-table
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -20,3 +20,6 @@ 'use strict'; | ||
var SortManager = function () { | ||
function SortManager(columns, sortMulti) { | ||
function SortManager(_ref) { | ||
var columns = _ref.columns, | ||
sortMulti = _ref.sortMulti; | ||
_classCallCheck(this, SortManager); | ||
@@ -70,2 +73,12 @@ | ||
this.update = function (_ref2) { | ||
var columns = _ref2.columns, | ||
sortMulti = _ref2.sortMulti; | ||
_this2.columns = columns; | ||
_this2.sortMulti = sortMulti; | ||
_this2.enable = {}; | ||
_this2.enable = _this2._enable(columns); | ||
}; | ||
this._enable = function (columns) { | ||
@@ -72,0 +85,0 @@ var order = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; |
@@ -368,3 +368,3 @@ 'use strict'; | ||
_this.dataManager = new _DataManager2.default(props); | ||
_this.sortManager = new _SortManager2.default(_this.columnManager.groupedColumns(), props.sortMulti); | ||
_this.sortManager = new _SortManager2.default({ columns: _this.columnManager.groupedColumns(), sortMulti: props.sortMulti }); | ||
_this.sizeManager = new _SizeManager2.default(props); | ||
@@ -437,2 +437,4 @@ | ||
this.sizeManager.update(this.columnManager.reset(nextProps)); | ||
this.sortManager.update({ columns: this.columnManager.groupedColumns(), sortMulti: nextProps.sortMulti }); | ||
this.store.setState({ orders: this.sortManager.enable }); | ||
this.updateColumn(); | ||
@@ -439,0 +441,0 @@ } |
{ | ||
"name": "fast-table", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "react table fast", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
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
103442
2616