shadow
Komponent RelativeTime je element slúžiaci na zobrazenie relatívneho času na základe vloženého dátumu. Vypočíta a zobrazí relatívny časový rozdiel medzi aktuálnym dátumom a zadaným dátumom. Formát relatívneho času je lokalizovaný na základe jazyka prehliadača používateľa.
Description | Sets the date of the relative time component. |
Attribute | date |
Type | string |
Default | undefined |
Description | Sets the language of the relative time component. |
Attribute | window |
Type | string |
Default | undefined |
No events available for this component.
Description | Returns the relative time string for the specified date. |
Signature | getRelativeTimeString(lang = navigator.language) => string |
Description | Checks if the string is in ISO date format. |
Signature | isISODate(str) => boolean |
Name | Description |
---|
native | Refers to div inside an element. |
No CSS custom properties available for this component.
No slots available for this component.