Skip to content

Commit 537949b

Browse files
Add decimalplaces field to number widgets
Added 'decimalplaces' field to number widget specifications across multiple sections.
1 parent 180e7c1 commit 537949b

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

docs/docs/API-docs/v1.1/opensign.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,13 +578,15 @@ paths:
578578
"required": true,
579579
"default": 0,
580580
"formula": "",
581+
"decimalplaces": 2,
581582
"color": "black",
582583
"fontsize": 12
583584
}
584585
}
585586
```
586587
- **formula:** Compute the value from other number widgets using +, -, *, /, (, ). Reference widgets by their name in double curly braces, e.g. {{quantity}} * {{rate}}. to know more [visit here](https://docs.opensignlabs.com/docs/help/New-Document/widgets) (optional).
587588
- **default:** Provide a default number (Optional).
589+
- **decimalplaces:** Number of digits to display after the decimal point. e.g: 2 => 12.00, 0 => 12 (default 2)
588590
operationId: selfsign
589591
requestBody:
590592
content:
@@ -927,6 +929,7 @@ paths:
927929
"default": 0,
928930
"hint": "Enter number",
929931
"formula": "",
932+
"decimalplaces": 2,
930933
"color": "black",
931934
"fontsize": 12
932935
}
@@ -936,7 +939,7 @@ paths:
936939
- **default:** Provide a default number (Optional).
937940
- **hint:** Provide a hint for the number (Optional).
938941
- **readonly:** Set to true if you want to set the textbox as readonly. By default, it's false.
939-
942+
- **decimalplaces:** Number of digits to display after the decimal point. e.g: 2 => 12.00, 0 => 12 (default 2)
940943
941944
**Prefill Widgets:** Prefill widgets are elements that are inserted into a document **before** it is shared with a user. Only the document creator has permission to add them.
942945
@@ -1403,6 +1406,7 @@ paths:
14031406
"default": 0,
14041407
"hint": "Enter number",
14051408
"formula": "",
1409+
"decimalplaces": 2,
14061410
"color": "black",
14071411
"fontsize": 12
14081412
}
@@ -1412,6 +1416,7 @@ paths:
14121416
- **default:** Provide a default number (Optional).
14131417
- **hint:** Provide a hint for the number (Optional).
14141418
- **readonly:** Set to true if you want to set the textbox as readonly. By default, it's false.
1419+
- **decimalplaces:** Number of digits to display after the decimal point. e.g: 2 => 12.00, 0 => 12 (default 2)
14151420

14161421
**Prefill Widgets:** Prefill widgets are elements that are inserted into a document **before** it is shared with a user. Only the document creator has permission to add them.
14171422

@@ -1662,7 +1667,7 @@ paths:
16621667
"name": "number",
16631668
"readonly": false,
16641669
"default": 0,
1665-
"formula": ""
1670+
"formula": "",
16661671
}
16671672
```
16681673
@@ -2400,6 +2405,7 @@ paths:
24002405
"default": 0,
24012406
"hint": "Enter number",
24022407
"formula": "",
2408+
"decimalplaces": 2,
24032409
"color": "black",
24042410
"fontsize": 12
24052411
}
@@ -2409,6 +2415,7 @@ paths:
24092415
- **default:** Provide a default number (Optional).
24102416
- **hint:** Provide a hint for the number (Optional).
24112417
- **readonly:** Set to true if you want to set the textbox as readonly. By default, it's false.
2418+
- **decimalplaces:** Number of digits to display after the decimal point. e.g: 2 => 12.00, 0 => 12 (default 2)
24122419
24132420
24142421
**Prefill Widgets:** Prefill widgets are elements that are inserted into a document **before** it is shared with a user. Only the document creator has permission to add them.
@@ -2897,6 +2904,7 @@ paths:
28972904
"default": 0,
28982905
"hint": "Enter number",
28992906
"formula": "",
2907+
"decimalplaces": 2,
29002908
"color": "black",
29012909
"fontsize": 12
29022910
}
@@ -2906,6 +2914,7 @@ paths:
29062914
- **default:** Provide a default number (Optional).
29072915
- **hint:** Provide a hint for the number (Optional).
29082916
- **readonly:** Set to true if you want to set the textbox as readonly. By default, it's false.
2917+
- **decimalplaces:** Number of digits to display after the decimal point. e.g: 2 => 12.00, 0 => 12 (default 2)
29092918
29102919
29112920
**Prefill Widgets:** Prefill widgets are elements that are inserted into a document **before** it is shared with a user. Only the document creator has permission to add them.
@@ -3393,6 +3402,7 @@ paths:
33933402
"default": 0,
33943403
"hint": "Enter number",
33953404
"formula": "",
3405+
"decimalplaces": 2,
33963406
"color": "black",
33973407
"fontsize": 12
33983408
}
@@ -3402,6 +3412,7 @@ paths:
34023412
- **default:** Provide a default number (Optional).
34033413
- **hint:** Provide a hint for the number (Optional).
34043414
- **readonly:** Set to true if you want to set the textbox as readonly. By default, it's false.
3415+
- **decimalplaces:** Number of digits to display after the decimal point. e.g: 2 => 12.00, 0 => 12 (default 2)
34053416
34063417
34073418
**Prefill Widgets:** Prefill widgets are elements that are inserted into a document **before** it is shared with a user. Only the document creator has permission to add them.

0 commit comments

Comments
 (0)