-
Notifications
You must be signed in to change notification settings - Fork 274
feat(ItemNavigation): introduce navigationMode property #910
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
Conversation
- prevents focusing next/prev item when pressing right/left arrow FIXES: #862
Why a property - we need both cases in order to cover all requirements. ActionSheet - horizontal navigation works fine - https://openui5nightly.hana.ondemand.com/#/entity/sap.m.ActionSheet/sample/sap.m.sample.ActionSheet |
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.
let's discuss the name first.
- if it is about vertical navigation, there will be a second property
- two properties about controlling the same behaviour seems strage
- there are four possible values, why not an enum?
- one of the four values doesn't make sense - both horizontal and vertical prevented
an enum might be more meaningful (both the name and the values):
navigationMode = { Horizontal, Vertical, Auto|Both|2D }
(1) The ItemNavigation now has three navigation modes: - "Vertical" - "Up|Down" navigation - "Horizontal"- "Left|Right" navigation - "Auto" - both "Vertical" and "Horizontal" navigation (2) From now you can navigate throw the List items and Table rows only vertically via the "Up" and "Down" arrow keys. FIXES: #862
(1) The ItemNavigation now has three navigation modes:
(2) From now you can navigate throw the List items and Table rows only vertically
via the "Up" and "Down" arrow keys.
FIXES: #862