Skip to content

Commit

Permalink
add configuration for font types
Browse files Browse the repository at this point in the history
  • Loading branch information
kytcrystal committed Aug 20, 2024
1 parent b6586b1 commit 408775a
Show file tree
Hide file tree
Showing 8 changed files with 1,611 additions and 8,493 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ The data source for the components is the [Open Data Hub](https://opendatahub.co
- [Translations](#translations)
- [Logo](#logo)
- [Marker](#marker)
- [Font](#font)
- [Styling](#styling)
- [Getting started](#getting-started)
- [Prerequisites](#prerequisites)
Expand Down Expand Up @@ -82,6 +83,14 @@ To configure desired starting location with marker, add `current_location` attri
<e-mobility-map-widget current_location='{ "lat": 46.5, "lng": 11.33 }'></e-mobility-map-widget>
```

#### Font

To configure desired font, add `fontFamily` attribute.

```html
<e-mobility-map-widget fontFamily="Arial"></e-mobility-map-widget>
```

### Styling

This web component has only one style variable, namely
Expand All @@ -100,6 +109,7 @@ For example:
logo="logo.png"
language="it"
current_location='{ "lat": 46.5, "lng": 11.33 }'
fontFamily="Arial"
></e-mobility-map-widget>
```

Expand Down
Loading

0 comments on commit 408775a

Please sign in to comment.