@protoqol/directus-extension-formatted-numbers 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+

|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+

|
|
4
|
+

|
|
5
5
|
|
|
6
6
|
## Features
|
|
7
7
|
|
|
@@ -11,6 +11,13 @@ Perfect for dashboards and tables where space is limited or where accurate numbe
|
|
|
11
11
|
- **Full Value Tooltip**: Hover over any abbreviated number to see the exact, unformatted value in a tooltip.
|
|
12
12
|
- **Customisable Appearance**: Add custom prefixes (like currency symbols) and suffixes.
|
|
13
13
|
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
There are a few different ways to install this extension:
|
|
17
|
+
|
|
18
|
+
- Via Directus Marketplace (recommended)
|
|
19
|
+
- Self-hosted: see [Directus Docs](https://directus.io/docs/self-hosting/including-extensions) to install extensions.
|
|
20
|
+
|
|
14
21
|
## Configuration Options
|
|
15
22
|
|
|
16
23
|
When configuring a field to use the "Formatted numbers" display, you can customise the following options:
|
|
@@ -29,6 +36,8 @@ When configuring a field to use the "Formatted numbers" display, you can customi
|
|
|
29
36
|
|
|
30
37
|
## Examples
|
|
31
38
|
|
|
39
|
+

|
|
40
|
+
|
|
32
41
|
| Raw Value | Config | Output |
|
|
33
42
|
|:----------------------|:------------------|:------------|
|
|
34
43
|
| `1,234,567` | `en`, 2 decimals | `1.23M` |
|
package/package.json
CHANGED