agregar function con console logs para agregar funcionalidad formato
This commit is contained in:
parent
2f4d4e5142
commit
be6785152b
@ -212,6 +212,15 @@ function makeRenderer() {
|
|||||||
};
|
};
|
||||||
} : null;
|
} : null;
|
||||||
|
|
||||||
|
var getFormatedValue = function getFormatedValue(aggregator, rowKey, colKey) {
|
||||||
|
console.log('aggregator', aggregator);
|
||||||
|
console.log('rowKey', rowKey);
|
||||||
|
console.log('colKey', colKey);
|
||||||
|
console.log('props.headersDefinitions', _this2.props.headersDefinitions);
|
||||||
|
console.log('props', _this2.props);
|
||||||
|
return '';
|
||||||
|
};
|
||||||
|
|
||||||
return _react2.default.createElement(
|
return _react2.default.createElement(
|
||||||
'table',
|
'table',
|
||||||
{ className: 'pvtTable' },
|
{ className: 'pvtTable' },
|
||||||
@ -308,7 +317,8 @@ function makeRenderer() {
|
|||||||
onClick: getClickHandler && getClickHandler(aggregator.value(), rowKey, colKey),
|
onClick: getClickHandler && getClickHandler(aggregator.value(), rowKey, colKey),
|
||||||
style: valueCellColors(rowKey, colKey, aggregator.value())
|
style: valueCellColors(rowKey, colKey, aggregator.value())
|
||||||
},
|
},
|
||||||
aggregator.format(aggregator.value())
|
aggregator.format(aggregator.value()),
|
||||||
|
j < 10 && getFormatedValue(aggregator, rowKey, colKey)
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
_react2.default.createElement(
|
_react2.default.createElement(
|
||||||
|
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.22",
|
"version": "0.11.23",
|
||||||
"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