From d4ae7757bbc49447620a4c9be83408533f8b9099 Mon Sep 17 00:00:00 2001 From: tbshag2 Date: Sat, 18 May 2024 19:51:44 +0300 Subject: [PATCH] [update] methods and table-shape updated --- docs/api/config/tableshape-property.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/api/config/tableshape-property.md b/docs/api/config/tableshape-property.md index 3adf138..5ee3d0f 100644 --- a/docs/api/config/tableshape-property.md +++ b/docs/api/config/tableshape-property.md @@ -36,7 +36,7 @@ tableShape?: { tree?:boolean, cleanRows?: boolean, split?: { - left?: number; + left?: number }, }; ~~~ @@ -65,8 +65,9 @@ By default, `tableShape` is undefined, implying that no total row, no total colu In the example below we apply the template to the *score* values to display 2 digits after the decimal point for these values and we add the "€" sign to the *price* values. -~~~jsx {1,6} -const templates = { price: (v) => (v ? "€" + v : v), score: (v) => (v ? parseFloat(v).toFixed(2) : v) }; +~~~jsx {1-2,7} +const templates = { price: (v) => (v ? "€" + v : v), +score: (v) => (v ? parseFloat(v).toFixed(2) : v) }; const widget = new pivot.Pivot("#pivot", { tableShape: {