This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ########################################################################################## | |
| # https://community.home-assistant.io/t/card-mod-super-charge-your-themes/212176/419 | |
| # My 'Custom header' card-mod theme: | |
| # - Enables individual color customization for view icons. | |
| # - Provides an optional replacement for the default three-dots options menu. | |
| # - Supports configuration of left-side menu icons, including animations, color schemes, | |
| # and notification badges. | |
| # - Allows definition of custom background images or colors to override the default | |
| # theme background. | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Simplest possible custom card | |
| // Does nothing. Doesn't look like anything | |
| class MyCustomCard extends HTMLElement { | |
| setConfig(config) { | |
| // The config object contains the configuration specified by the user in ui-lovelace.yaml | |
| // for your card. | |
| // It will minimally contain: | |
| // config.type = "custom:my-custom-card" |