-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
Taphold action on oh-label-card and oh-button #1313
Conversation
…mponents upon tap and hold (or contextual menu call on desktop). Signed-off-by: Gautier Taravella <tarag@mailbox.org>
Somehow all the hard work seemed to be already done 👍 . |
Job #351: Bundle Size — 10.69MB (~+0.01%).Changed metrics (2/8)
|
Thanks! For completeness sake, could you elaborate how to chose to add this to oh-label-card & oh-button only and not components which perhaps could benefit from this as well? |
It's just a start to see how things goes (from a usage standpoint). I think these are the most generic components on which actions are used. In addition, there are others like toggle or roller shutter on which I don't think it would be a great choice to have this kind of action. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, thanks!
Bug introduced in openhab#1313 and breaking config sheets in various parts of the UI. Fixes openhab#1343. Fixes openhab/openhab-core#2850. Signed-off-by: Yannick Schaus <github@schaus.net>
Bug introduced in #1313 and breaking config sheets in various parts of the UI. Fixes #1343. Fixes openhab/openhab-core#2850. Signed-off-by: Yannick Schaus <github@schaus.net>
This PR provides another configurable action upon taphold (or calling contextual menu on desktop) in oh-label-cards and oh-buttons.
This is quite interesting for wall mounted interfaces when using canvas layout and a floor plan. A button controlling a light might do the basic action upon touch (toggle the light), and display a popup with additional actions upon hold (like dimming, color...).