Skip to main content

FormatDigital

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.

Základné použitie

Možnosti zobrazenia

Formátovanie bajtov

Formátovanie bitov

Použitie so slotmi

Atribúty a Vlastnosti

value

DescriptionThe value to be formatted. Specifies the size in bytes or bits to display.
Attributevalue
Typenumber | string
Defaultundefined

unit

DescriptionFormatting unit. Valid values are 'bit' or 'byte'.
Attributeunit
Typestring
Default"byte"

unitDisplay

DescriptionUnit display style. Valid values are 'short', 'long' or 'narrow'.
Attributeunit-display
Typestring
Default"short"

Eventy

No events available for this component.

Metódy

No public methods available for this component.

CSS Shadow Parts

NameDescription
nativeRefers to the main container of the element
formattedRefers to the element containing the formatted value

CSS Custom Vlastnosti

No CSS custom properties available for this component.

Sloty

NameDescription
startContent placed before the formatted value.
endContent placed after the formatted value.