Skip to content

Commit 8cdeb6a

Browse files
author
hywax
committed
docs(en): service target
1 parent 7a81999 commit 8cdeb6a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Diff for: docs/services/base.md

+24
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,30 @@ It is also used to check [status](#status) availability.
3131
link: https://home-assistant.home.local/
3232
```
3333
34+
## Target
35+
36+
Browser behavior when the service is clicked.
37+
With this property, you can make the service open in the current or a new window.
38+
39+
```yaml
40+
target: _blank
41+
```
42+
43+
Values:
44+
45+
| Value | Description |
46+
|-----------|---------------------------------------------------------------------------------------------------------------------------------|
47+
| `_blank` | Usually a new tab, but users can configure browsers to open a new window instead |
48+
| `_self` | The current browsing context |
49+
| `_parent` | The parent browsing context of the current one. If no parent, behaves as `_self` |
50+
| `_top` | The topmost browsing context (the "highest" context that's an ancestor of the current one). If no ancestors, behaves as `_self` |
51+
52+
Default: `_blank`
53+
54+
::: warning
55+
This property takes precedence over `behaviour.target` from `config.yml`. You can read more in the [configuration](../reference/configuration.md#target)
56+
:::
57+
3458
## Icon
3559

3660
Service icon. Allows you to quickly find the required item.

0 commit comments

Comments
 (0)