Route Description
5.0.2
Route Description används för att visa information om en resa.
Namn | Typ | Beskrivning |
---|---|---|
activeLeg | number | For showing route progression. This indicates which leg of the journey is currently active.
This should be a number between 0 and the length of the items array. _Optional_. |
activeLegProgress | number | For showing route progression. This indicates how far along the current leg of the journey is.
This should be a number between 0 and 1, where 0 is the start of the leg and 1 is the end of the leg.
Should be used in conjunction with activeLeg . _Optional_. |
hiddenColumns | AvailableColumns[] | Hidden columns in the route description. This is an array of strings that correspond to the data attributes of the columns to hide. Default is an empty array, meaning no columns are hidden. __WARNING!__ This should only be used if you really know that some of the data points will never be shown. It should __NOT__ be used to force a certain kind of layout. |
isLoading | boolean | If true, a loading skeleton will be rendered instead of the component. |
isStriped | boolean | Every other route item will be shaded if this is set to true. Default is false . |
items * | RouteDescriptionItemProps[] | List of items in the route description. This is the "meat and bones" of the route description component. Each item consist of the following parameters. |
lang | "sv" |
"en" | Language used for internal translations. |
promoteTime | boolean | If true, the time (arrival/departure) will be rendered to the left of the path graphic. |
skeletonProps | RouteDescriptionSkeletonProps | Props to pass to the RouteDescriptionSkeleton component when isLoading is true. |
npm install @sj-ab/component-library.ui.route-description
Route Description presenteras som en WAI-ARIA-lista:
Varje Route Description Item har en anpassad uppläsning för skärmläsare. All synlig text och alla ikoner döljs med aria-hidden="true"
och ersätts av en visuellt dold text.
Informationen i skärmläsartexten ska vara helt likvärdig den synliga informationen, men med förklarande ord och skiljetecken för att den ska bli lättare att förstå.
"
Utvecklare ansvarar för att skicka med en giltig translation-prop med de översättningar som ska användas i skärmläsartexten
Importer av Route Description
Repos med Route Description
Senaste installerade version av Route Description
Äldsta installerade version av Route Description