Category navigation is a rarely used pattern that can be used to replace tree-like structures with only a few levels in a responsive environment.
Use category navigation if:
- You need to show categorized data in a responsive environment.
- You need to replace a tree table on tablets and smartphones, and the tree table has a maximum of five levels.
- You need to show hierarchical data with different details at each level, and thus a tree table cannot be used.
Do not use category navigation if:
- You need only two levels, and the upper level identifies the category. In this case, use a grouped responsive table instead.
- You need more than five levels. In this case, use a tree table.
On a smartphone or tablet device, try to display the data on just five levels. You can do this in one of two ways:
- Remove unnecessary root levels.
- Offer the same items in different branches.
The category navigation pattern replaces the standard title of a responsive table with a breadcrumb showing the current navigation level.
A breadcrumb comprises links, icons, and text controls. App teams need to build the breadcrumb manually, and also ensure that its behavior is responsive. As soon as text is truncated, change the breadcrumb to a select control.
The breadcrumb appears in the toolbar, and replaces the table title.
At any given level, the responsive table contains the individual line items, including their column header, as well as the categories available for further drilldown.
Use links, icons, and text controls to implement the breadcrumb.
- Use links for the title of all levels above the current level.
- Use icon controls for the delimiters.
- Use text for the title of the current level.
As soon as the last text in the breadcrumb is truncated, change the breadcrumb to a select control. Show the title of the current level as the selected item.
Depending on the columns shown at each level, use one or more responsive tables to list the items at the different levels.
Within the responsive table, use the navigation mode of the items for container items.
Behavior and Interaction
Drill-In on Item
Clicking an item drills into it in one of the following ways:
- The content of the responsive table is changed (if all columns are the same on the second level).
- The entire responsive table is changed (if there are different columns on the second level).
The user can navigate further by using navigable items.
The breadcrumb adapts accordingly. Leaves are shown without a navigation indicator.
Drill-In on Item
Adapt the title to a breadcrumb.
Show navigation indicators if there are more levels.
Navigate further by using control items.
Ensure that the breadcrumb adapts accordingly. Note that leaves are shown without a navigation indicator.
Navigate back by using one of the links inside the breadcrumb. When the user navigates back, show exactly the same state as before.
As soon as the last text in the breadcrumb is truncated, change the breadcrumb to a select control.
Within the select control, show all parent nodes below the current node.
Keep the select control once it has been shown.
Do not revert to the breadcrumb just by navigating back within the select control, even if a breadcrumb would fit.
Only revert to the breadcrumb if the screen width is increased again and the breadcrumb fits.
When the user is navigating, change only the responsive table and the breadcrumb. Do not change anything else.
Do not navigate the user to another page.
Example: Drilldown with Breadcrumb Display
Want to dive deeper? Follow the links below to find out more about related controls, the SAPUI5 implementation, and the visual design.