diff --git a/projects/finance-grid/src/App.tsx b/projects/finance-grid/src/App.tsx index 9339efc..5a804d9 100644 --- a/projects/finance-grid/src/App.tsx +++ b/projects/finance-grid/src/App.tsx @@ -5,6 +5,7 @@ import { FilteringLogic, IgrCellTemplateContext, IgrColumn, + IgrColumnPipeArgs, IgrFilteringExpressionsTree, IgrGrid, IgrGridToolbar, @@ -30,6 +31,7 @@ function FinanceGrid() { const [financeData, setFinanceData] = useState([]); const gridRef = useRef(null); const intervalRef = useRef | null>(null); + useEffect(() => { registerIconFromText("trending_up", TRENDING_UP, "material"); registerIconFromText("trending_down", TRENDING_DOWN, "material"); @@ -51,6 +53,10 @@ function FinanceGrid() { return `${import.meta.env.BASE_URL}companies/${val.split(" ")[0]}.png`; }; + const currencyDigitsFormat: IgrColumnPipeArgs = { + digitsInfo: '1.2-2' + }; + const assetTemplate = (ctx: IgrCellTemplateContext) => { return (
@@ -155,7 +161,6 @@ function FinanceGrid() { <>