-
-
Notifications
You must be signed in to change notification settings - Fork 431
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
[ui] Switch widget as default widget for Number or String items with command options #1422
Conversation
Together with openhab/openhab-webui#217 the rendering looks like this: |
I think that the default should remain a selection. The buttons are not adapted when you have 50 options ! |
I considered checking number of command options against |
Yes, that would be ok IMHO to consider a max number of options to choose between switch or selection. 4 looks ok to me as a reasonable value. |
…nd options Signed-off-by: Christoph Weitkamp <[email protected]>
Signed-off-by: Christoph Weitkamp <[email protected]>
e510b5f
to
f72408e
Compare
I added the check for maximum number of options. |
Signed-off-by: Christoph Weitkamp <[email protected]>
3274e31
to
2172d63
Compare
Signed-off-by: Christoph Weitkamp <[email protected]>
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.
Thank you!
…command options (openhab#1422) Signed-off-by: Christoph Weitkamp <[email protected]> GitOrigin-RevId: f52af0b
Closes #1016
Signed-off-by: Christoph Weitkamp [email protected]