button-card icon indicating copy to clipboard operation
button-card copied to clipboard

doc: add extra_styles/config template notes

Open Lx opened this issue 2 years ago • 1 comments

  • State that extra_styles are not merged in config template usage.
  • Suggest a workaround.

Lx avatar Jun 29 '23 05:06 Lx

I am using another workaround:

in button_card_templates:

variables:
    var_extra_styles: |-
      ...
  extra_styles: |-
    [[[ return variables.var_extra_styles; ]]]

in the actual button:

    extra_styles: |-
      [[[
        return variables.var_extra_styles + " ... "

afarago avatar Jan 18 '24 22:01 afarago