button-card
button-card copied to clipboard
(help) Use the value of name in javascript?!
Hi!
It is possible to get the value of the name card with javascript and use it in other details? Something like this?
type: custom:button-card
show_label: true
name: testing
label: >
[[[
return this.config.name;
]]]
How can I achieve the proper way to get the name's value? I cannot use variables in my project, so I need some other way...
Thanks in advance!
It should work because "this" keyword catching the all object. It doesn't work in your code?
this._config.name (missing the _)