mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
panel_custom docs update (#13674)
This commit is contained in:
parent
50221f6d54
commit
5db9407ab1
@ -21,7 +21,7 @@ panel_custom:
|
|||||||
sidebar_title: TodoMVC
|
sidebar_title: TodoMVC
|
||||||
sidebar_icon: mdi:work
|
sidebar_icon: mdi:work
|
||||||
url_path: my-todomvc
|
url_path: my-todomvc
|
||||||
js_url: /local/my-panel.js
|
module_url: /local/my-panel.js
|
||||||
config:
|
config:
|
||||||
who: world
|
who: world
|
||||||
```
|
```
|
||||||
@ -51,12 +51,12 @@ url_path:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
js_url:
|
js_url:
|
||||||
description: The URL that contains the JavaScript of your panel. This is exclusive to `module_url` and `webcomponent_path`.
|
description: The URL that contains the JavaScript of your panel. If used together with `module_url`, will only be served to users that use the ES5 build of the frontend.
|
||||||
required: exclusive
|
required: false
|
||||||
type: string
|
type: string
|
||||||
module_url:
|
module_url:
|
||||||
description: The URL that contains the JavaScript module of your panel. Loaded as a JavaScript module instead of a script. This is exclusive to `js_url` and `webcomponent_path`.
|
description: The URL that contains the JavaScript module of your panel. Loaded as a JavaScript module instead of a script. If used together with `module_url`, will only be served to users that use the "latest" build of the frontend.
|
||||||
required: exclusive
|
required: false
|
||||||
type: string
|
type: string
|
||||||
config:
|
config:
|
||||||
description: Configuration to be passed into your web component when being instantiated.
|
description: Configuration to be passed into your web component when being instantiated.
|
||||||
@ -78,7 +78,7 @@ trust_external_script:
|
|||||||
default: false
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
webcomponent_path:
|
webcomponent_path:
|
||||||
description: "*DEPRECATED* The HTML path to your component. If omitted will default to `<config dir>/panels/<component name>.html` This is exclusive to `js_url` and `module_url`."
|
description: "*DEPRECATED* The HTML path to your component. If omitted will default to `<config dir>/panels/<component name>.html` This cannot be used in combination with either `js_url` and `module_url`."
|
||||||
required: exclusive
|
required: false
|
||||||
type: string
|
type: string
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user