Sub-button visibility #787
alrhalford
started this conversation in
Feature requests
Replies: 1 comment 2 replies
-
Hi, this is already possible, take a look at the templates section in the documentation, I've added this exact example 🙂 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have copied the button that triggers a pop up example, and it looks great. Sometimes, it would be useful to have a sub button to show the state of some entity, but only visible depending on the state.
For example, I have a pop-up for everything to do with my cat, and button that triggers it called 'Cat'. It would be useful to see at a glance if the cat has used the litterbox, so it would be great to have a sub-button (or some kind of display, it doesn't necessarily have to be click-able) that is visible if the cat has used the litterbox, and not visible if not. I have attached an example:
![image](https://private-user-images.githubusercontent.com/10921763/367060029-800d69c7-9445-43ae-8252-8b5a2202e1f5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MTE4NTIsIm5iZiI6MTczOTYxMTU1MiwicGF0aCI6Ii8xMDkyMTc2My8zNjcwNjAwMjktODAwZDY5YzctOTQ0NS00M2FlLTgyNTItOGI1YTIyMDJlMWY1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA5MjU1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFlZmNlYWM1MWJmZDE3NDVjYWM5NGVkZTYyMWY0OGYzMWJkNTBiNzVhM2UzZTA2ZDdlODk0OTdiZTdhMGJhZTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ktWXs4U4QoJsEcVhVQIu8AfCRm-ppMk5PFFOPPviQcs)
I know it is possible to change that icon based on the entity's state, using custom styles, but I would love to be able to hide it completely.
Beta Was this translation helpful? Give feedback.
All reactions