agregar function con console logs para agregar funcionalidad formato

This commit is contained in:
dehernandezm 2025-01-24 10:35:29 -06:00
parent 2f4d4e5142
commit be6785152b
3 changed files with 13 additions and 3 deletions

View File

@ -212,6 +212,15 @@ function makeRenderer() {
};
} : 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(
'table',
{ className: 'pvtTable' },
@ -308,7 +317,8 @@ function makeRenderer() {
onClick: getClickHandler && getClickHandler(aggregator.value(), rowKey, colKey),
style: valueCellColors(rowKey, colKey, aggregator.value())
},
aggregator.format(aggregator.value())
aggregator.format(aggregator.value()),
j < 10 && getFormatedValue(aggregator, rowKey, colKey)
);
}),
_react2.default.createElement(

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "v-react-pivottable",
"version": "0.11.22",
"version": "0.11.23",
"description": "A React-based pivot table",
"main": "PivotTableUI.js",
"files": [