You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,7 @@ This component can be used as entity as well
44
44
| name | String | **(required)** | v0.1.0 | Name of the attribute
45
45
| icon | String | | v0.1.0 | Icon override (there are default icons for most of the available attributes)
46
46
| url | [KString](#keywordstring)\| Boolean | | v0.2.0 | Url to open on click/tap. (there are default urls for most of the available attributes, so you can just use `true`)
47
+
| label | [KString](#keywordstring) | | v0.5.0 | Label/text which will be shown instead of the icon
47
48
48
49
### KeywordString
49
50
@@ -53,6 +54,12 @@ E.g. `"Card version {latest_release_tag}"` becomes `"Card version v1.5.0"`
You can do simple replace operation on the value e.g.: `"{name:Github=Project}"`. It will replace `"Github"` string in the `name` value with `"Project"`, so if your name attribute is `"Github github-flexi-card"` then the final result will be `"Project github-flexi-card"`.
60
+
61
+
Note: It is very simple replace machanism, it is case sensitive, replaces only first match and it doesn't have any escape chars so you cannot use characters like `=` or `:` in the search word nor target word.
0 commit comments