-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Back Button Support #871
Comments
try:
secret: it's the same action chips card executes.... btw if you also want the other chips button (the 2 ones I had and were the sole reason I installed mushroom for...) Mushroom has, the Menu button, try this:
|
:-) 1st one sort of works, has a strange affect, I have it in the Overview with a number of cards I test. I have a shortcut on chrome that takes me straight to the Overview however when it gets to the page automatically takes me to another window without me doing anything - if that makes sense. |
Mmm tries to send me all over the place if I start editing it :-) |
I use the mushroom chip menu card for the second already, the custom back button would be great though |
yeah, its always something iffy if you start editing those js commands. even in the editor, upon each and every character. thats why I use Yaml mode for that ;-) and upon reload, the commands are issued, also true. but not upon simple browsing in my test setup. there might be a way to prevent that form happening, if chips can do it button-card should also. |
Yeah the chips card does not act that way - your right. Wonder how they do it? |
Ive opened a post in Discord and hope to see some response How Mushroom does it is clear, it's in those lines I copied. The question is how to translate that to custom button-card ;-) |
btw for now, I had to look it up....: see cut it short: have a dedicated entity be toggled by the button, and auto reset by an automation (delay is required otherwise the frontend wont pick it up_
and then use button-card like this:
given the fact we can not set a listener to the 'on_click' , this 'hack' will prevent the button from execute on reload, and only listen to the boolean being toggled. the name of the variable is irrelevant, the card will execute the javascript as long as the entity.state == 'on' no matter what |
I'm posting from the forum in case someone has a similar problem and search here on github.
|
Looks, good, I just updated my entire dashboard, good work. Now how to replace BrowserMod with a similar concept? I use BrowserMod it to navigate to a dashboard wait for a set period of time then revert back automatically to the page from which it came from - should be able to do it via an automation, I will give it some thought |
After searching everywhere is seems that the only option for a back action is a mushroom card, however you are very limited as to customization.
The requirement for a back button action is to navigate back to where you came from, for example: you could navigate between dashboards and no matter where you came from you could navigate back again with a push of a button.
Describe the solution you'd like
If the Button card could support "tap action : back" then we would have complete customization of the use of it.
The text was updated successfully, but these errors were encountered: