Intro
The table toolbar provides actions for tables across Data & Analytics products.
When to Use
Do
Use the table toolbar:
- There are multiple objects on your page and you need to edit only a single table.
- You want to show actions as close to their corresponding controls as possible.
- You need a title for your table.
Don't
Don’t use the table toolbar:
- You are using single selection and have only one or two actions. In this case, place the actions on each line
- If there is no table to use it with.
Top Tips
- Drill down one level to change the button type or icon.
- This component utilizes two slots (Left Area and Right Area), allowing content to be swapped or re-ordered without having to break the component. Left Area is aligned to the left side of the toolbar, and Right Area aligns to the right.
Anatomy
-
Title (Optional)
-
Variant management or content switch (segmented button or input select) (Optional)
-
Search or Segmented Control (Optional)
-
Finalizing Actions (Optional): Save, Cancel
-
Business Actions (Optional):
Actions for object management- Create (for new items) or Add (for existing items)
- Edit
- Delete (if the object itself is deleted) or Remove (if the reference to an item is removed)
- Paste
-
Actions for content management (Optional):
view settings- Show Details / Hide Details
- Sort
- Filter
- Group
- Column Settings
-
Generic actions, export to spreadsheet, Print (Optional)
-
Maximize/Minimize, View switch (for example to switch between table & chart view), position of the overflow (not visible in this example) (Optional)
Anatomy of the Switch (DNA)
Responsivness
To enable responsiveness, use the overflow toolbar control. Based on the sap.m.Toolbar control, the OverflowToolbar control is a container that provides overflow when its content does not fit in the visible area. Controls that can overflow include the segmented button, select, toggle button, checkbox, input, search field, combo box, and date/time input.
Only allow important actions to shrink and stay outside the overflow. The app team itself must decide which actions it considers to be sufficiently important.
Overflow toolbar control