You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function returnWinnings(cell, row) {
return row.winnings;
}
function returnUsed(cell, row) {
return row.used;
}
function returnTotal(cell, row) {
return row.total;
}
function returnDate(cell, row) {
return row.date;
}
when i running the cell returns null, but the row returns the properties i need like this:
{date: isodate, winnings: x, used: y, total:z}
so i assume i'm returning the correct values...
the thing is, service1 has a lower number of elements than service2, and service2 lower than service3 so on, could it be a limitation of the package? it should always return the same ammount of data to fill the table properly...?
also i could be making some mistake so please please check the...
Uncaught (in promise) TypeError: n.props.data.slice is not a function
at new t (BootstrapTable.js:158)
at d._constructComponentWithoutOwner (ReactCompositeComponent.js:298)
at d._constructComponent (ReactCompositeComponent.js:285)
at d.mountComponent (ReactCompositeComponent.js:188)
at Object.mountComponent (ReactReconciler.js:46)
at h.mountChildren (ReactMultiChild.js:238)
at h._createInitialChildren (ReactDOMComponent.js:697)
at h.mountComponent (ReactDOMComponent.js:516)
at Object.mountComponent (ReactReconciler.js:46)
at d.performInitialMount (ReactCompositeComponent.js:371)
at d.mountComponent (ReactCompositeComponent.js:258)
The text was updated successfully, but these errors were encountered:
i have managed to manipulate my multidimensional array into a flat, using .concat from native array and merging with groupBy() from loodash, a hell of work.. but now it's running...
sorry for lately reply and it's bust on this month, react-bootstrap-table only accept an array of source data and we dont support the nest object currently, but I'll consider to add it in the future. Let me know if you have any questions.
@VagnerDomingues you can use lodash _.get as it was suggested here. I'm currently using it and i am very happy with the results; just create a format function and pass it to the dataFormat prop:
I have the folowing data formaters:
when i running the cell returns null, but the row returns the properties i need like this:
{date: isodate, winnings: x, used: y, total:z}
so i assume i'm returning the correct values...
the thing is, service1 has a lower number of elements than service2, and service2 lower than service3 so on, could it be a limitation of the package? it should always return the same ammount of data to fill the table properly...?
also i could be making some mistake so please please check the...
rest of the code:
and the error i'm getting:
Uncaught (in promise) TypeError: n.props.data.slice is not a function
at new t (BootstrapTable.js:158)
at d._constructComponentWithoutOwner (ReactCompositeComponent.js:298)
at d._constructComponent (ReactCompositeComponent.js:285)
at d.mountComponent (ReactCompositeComponent.js:188)
at Object.mountComponent (ReactReconciler.js:46)
at h.mountChildren (ReactMultiChild.js:238)
at h._createInitialChildren (ReactDOMComponent.js:697)
at h.mountComponent (ReactDOMComponent.js:516)
at Object.mountComponent (ReactReconciler.js:46)
at d.performInitialMount (ReactCompositeComponent.js:371)
at d.mountComponent (ReactCompositeComponent.js:258)
The text was updated successfully, but these errors were encountered: