Skip to content

Commit 4609bf2

Browse files
authored
Merge pull request #266 from FamousWolf/dev
[MERGE] Merge files for version 1.12.0
2 parents 88e247a + e914a98 commit 4609bf2

File tree

6 files changed

+768
-616
lines changed

6 files changed

+768
-616
lines changed

README.md

+26-11
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Custom Home Assistant card displaying a responsive overview of multiple days wit
3939
Add:
4040
```yaml
4141
resources:
42-
- url: /local/week-planner-card.js?version=1.11.1
42+
- url: /local/week-planner-card.js?version=1.12.0
4343
type: module
4444
```
4545
- **Using the graphical editor**
@@ -86,23 +86,26 @@ Custom Home Assistant card displaying a responsive overview of multiple days wit
8686
| `hideTodayWithoutEvents` | boolean | false | `false` \| `true` | Also do not show today without events if `hideDaysWithoutEvents` is set | 1.8.0 |
8787
| `filter` | string | optional | Any regular expression | Remove events that match the regular expression | 1.7.0 |
8888
| `filterText` | string | optional | Any regular expression | Remove text from events | 1.10.0 |
89+
| `replaceTitleText` | object | optional | See [Replace title text](#replace-title-text) | Replace title text | 1.12.0 |
8990
| `combineSimilarEvents` | boolean | false | `false` \| `true` | Combine events with the same start date/time, end date/time and title | 1.9.0 |
9091
| `showLegend` | boolean | false | `false` \| `true` | Show calendar legend | 1.7.0 |
9192
| `legendToggle` | boolean | false | `false` \| `true` | Toggle calendars by clicking on the legend | 1.11.0 |
9293
| `columns` | object | optional | See [Columns](#columns) | Configuration to override the number of columns | 1.11.0 |
94+
| `showNavigation` | boolean | false | `false` \| `true` | Show navigational arrows to traverse additional dates on calendar. | 1.12.0 |
9395

9496
### Calendars
9597

96-
| Name | Type | Default | Supported options | Description | Version |
97-
|-------------------|---------|--------------|------------------------|--------------------------------------------------------|---------|
98-
| `entity` | string | **Required** | `calendar.my_calendar` | Entity ID | 1.0.0 |
99-
| `name` | string | optional | Any text | Name of the calendar | 1.7.0 |
100-
| `color` | string | optional | Any CSS color | Color used for events from the calendar | 1.0.0 |
101-
| `icon` | string | optional | Any icon | Icon used for events from the calendar | 1.10.0 |
102-
| `eventTitleField` | string | optional | Any text | Name of the title field for events (usually `summary`) | 1.11.0 |
103-
| `filter` | string | optional | Any regular expression | Remove events that match the regular expression | 1.8.0 |
104-
| `filterText` | string | optional | Any regular expression | Remove text from events | 1.10.0 |
105-
| `hideInLegend` | boolean | false | `false` \| `true` | Do not show the calendar in the legend | 1.8.0 |
98+
| Name | Type | Default | Supported options | Description | Version |
99+
|--------------------|---------|--------------|-----------------------------------------------|--------------------------------------------------------|---------|
100+
| `entity` | string | **Required** | `calendar.my_calendar` | Entity ID | 1.0.0 |
101+
| `name` | string | optional | Any text | Name of the calendar | 1.7.0 |
102+
| `color` | string | optional | Any CSS color | Color used for events from the calendar | 1.0.0 |
103+
| `icon` | string | optional | Any icon | Icon used for events from the calendar | 1.10.0 |
104+
| `eventTitleField` | string | optional | Any text | Name of the title field for events (usually `summary`) | 1.11.0 |
105+
| `filter` | string | optional | Any regular expression | Remove events that match the regular expression | 1.8.0 |
106+
| `filterText` | string | optional | Any regular expression | Remove text from events | 1.10.0 |
107+
| `replaceTitleText` | object | optional | See [Replace title text](#replace-title-text) | Replace title text | 1.12.0 |
108+
| `hideInLegend` | boolean | false | `false` \| `true` | Do not show the calendar in the legend | 1.8.0 |
106109

107110
### Texts
108111

@@ -146,6 +149,18 @@ By default, the columns are based on the width of the card. You can use these se
146149
| `small` | number | optional | Any positive number | Number of columns when the card width is >= 640 pixels | 1.11.0 |
147150
| `extraSmall` | number | optional | Any positive number | Number of columns when the card width is < 640 pixels | 1.11.0 |
148151

152+
### Replace title text
153+
154+
You can replace text in the title. For example:
155+
156+
```yaml
157+
replaceTitleText:
158+
"Search text": "Replace text"
159+
"Foo": "Bar"
160+
```
161+
162+
This will replace the text "Search text" with "Replace text" and "Foo" with "Bar". This option is not available in the visual editor.
163+
149164
## Custom styling using cardmod
150165

151166
Like with most cards, you can add custom styling to this card using [card_mod](https://github.com/thomasloven/lovelace-card-mod). To make it easier to add custom styles to days and/or events, there are several classes that days and events can have. Additionally, there are data attributes you can use in CSS selectors.

0 commit comments

Comments
 (0)