shadow
Komponent FormatDigital je určený na formátovanie číselných hodnôt do ľudsky čitateľného digitálneho formátu s ohľadom na rôzne predpony jednotiek, ako sú kilo, mega, giga atď. Ponúka možnosti prispôsobenia jednotiek, štýlu zobrazenia jednotiek a podporuje lokalizáciu.
| Description | The value to be formatted. Specifies the size in bytes or bits to display. |
| Attribute | value |
| Type | number | string |
| Default | undefined |
| Description | Formatting unit. Valid values are 'bit' or 'byte'. |
| Attribute | unit |
| Type | string |
| Default | "byte" |
| Description | Unit display style. Valid values are 'short', 'long' or 'narrow'. |
| Attribute | unit-display |
| Type | string |
| Default | "short" |
No events available for this component.
No public methods available for this component.
| Name | Description |
|---|
native | Refers to the main container of the element |
formatted | Refers to the element containing the formatted value |
No CSS custom properties available for this component.
| Name | Description |
|---|
start | Content placed before the formatted value. |
end | Content placed after the formatted value. |