Closed zzz-code closed 7 years ago
Try customComponent
:
const Price = ({ value }) => (
<span>{numbro(value).format(value > 1 ? '0,0.00' : '0,0.[000000]')}</span>
);
--
<ColumnDefinition id="price" title="Price" customComponent={Price} />
Thnx that works
Hi, i like to know if it is possible to manipulate the data that is being set to the ColumnDefinition component. I fetch some json data from a API. For example I like to add some currency format settings or a $ before my price data with Numbro.
But this is not working. Is there a way to do this with Griddle?