FormatDigital
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.
Základné použitie
Formáty zobrazenia
Formáty bajtov
Formáty bitov
Atribúty a Vlastnosti
unit
Description | Defines the unit for displaying values. |
Attribute | unit |
Type | "bit" | "byte" | string & Record<never, never> | undefined |
Default | bytes |
unit-display
Description | Sets the fragment size for uploading large files in bytes. |
Attribute | unit-display |
Type | "long" | "narrow" | "short" | string & Record<never, never> | undefined |
Default | short |
Eventy
No events available for this component.
Metódy
No public methods available for this component.
CSS Shadow Parts
Name | Description |
---|---|
native | References a div element with the native-format-digital class inside the element |
CSS Custom Vlastnosti
No CSS custom properties available for this component.
Sloty
Name | Description |
---|---|
`` | The contents are placed between the named slots. |
end | The content is placed to the right of the button text in LTR and to the left in RTL |
start | The content is placed to the left of the button text in LTR and to the right in RTL. |