agregar console log para debugear actualizar opciones
This commit is contained in:
parent
d8c8074b0c
commit
d97d3c2b5c
@ -141,6 +141,18 @@ var DraggableAttribute = exports.DraggableAttribute = function (_React$Component
|
|||||||
},
|
},
|
||||||
'Mostrar Todas las Opciones'
|
'Mostrar Todas las Opciones'
|
||||||
),
|
),
|
||||||
|
' ',
|
||||||
|
_react2.default.createElement(
|
||||||
|
'a',
|
||||||
|
{
|
||||||
|
role: 'button',
|
||||||
|
className: 'pvtButton',
|
||||||
|
onClick: function onClick() {
|
||||||
|
_this2.props.updateFilterOptions();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'Mostrar Opciones en Tabla'
|
||||||
|
),
|
||||||
_react2.default.createElement('br', null),
|
_react2.default.createElement('br', null),
|
||||||
_react2.default.createElement('input', {
|
_react2.default.createElement('input', {
|
||||||
type: 'text',
|
type: 'text',
|
||||||
@ -373,6 +385,7 @@ var PivotTableUI = function (_React$PureComponent2) {
|
|||||||
value: function updateFilterOptions() {
|
value: function updateFilterOptions() {
|
||||||
var showAll = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
var showAll = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
||||||
|
|
||||||
|
console.log('updateFilterOptions showAll', showAll);
|
||||||
if (showAll) {
|
if (showAll) {
|
||||||
var _newState = JSON.parse(JSON.stringify(this.state));
|
var _newState = JSON.parse(JSON.stringify(this.state));
|
||||||
_newState.attrValuesReduced = JSON.parse(JSON.stringify(this.state.attrValues));
|
_newState.attrValuesReduced = JSON.parse(JSON.stringify(this.state.attrValues));
|
||||||
@ -398,6 +411,7 @@ var PivotTableUI = function (_React$PureComponent2) {
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
console.log('updateFilterOptions filteredData', filteredData);
|
||||||
var newState = JSON.parse(JSON.stringify(this.state));
|
var newState = JSON.parse(JSON.stringify(this.state));
|
||||||
newState.attrValuesReduced = {};
|
newState.attrValuesReduced = {};
|
||||||
var recordsProcessed = 0;
|
var recordsProcessed = 0;
|
||||||
@ -441,6 +455,7 @@ var PivotTableUI = function (_React$PureComponent2) {
|
|||||||
}
|
}
|
||||||
recordsProcessed++;
|
recordsProcessed++;
|
||||||
});
|
});
|
||||||
|
console.log('updateFilterOptions newState', newState);
|
||||||
this.setState(newState);
|
this.setState(newState);
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "v-react-pivottable",
|
"name": "v-react-pivottable",
|
||||||
"version": "0.11.43",
|
"version": "0.11.44",
|
||||||
"description": "A React-based pivot table",
|
"description": "A React-based pivot table",
|
||||||
"main": "PivotTableUI.js",
|
"main": "PivotTableUI.js",
|
||||||
"files": [
|
"files": [
|
||||||
|
Loading…
Reference in New Issue
Block a user