Favorites Bar configuration
Unless specified otherwise, these customizations can be configured directly on theAdvancedTablesPlugin object inside your PanelProvider.
Themes
Advanced Tables includes six different themes for the Favorites Bar:- Links
- Simple links
- Branded tabs
- Tabs
- Github (New, default)
- Filament (New)
Note: Since links-simple only has color to visually distinguish between active and in-active states, it is recommended you disable the ability to select a color for their User Views since it becomes difficult to know which link is active.
Size
You may change the size of the Favorites Bar links to allow more links to be shown with thefavoritesBarSize() method:
ActionSize::Small and ActionSize::Medium.
Icon position
You may change the position of a view’s icon in the Favorites Bar using thefavoritesBarIconPosition() method:
Disabling the Default View
By default, the Favorites Bar includes a Default View (previously named All). Clicking this will completely reset the table back to its default settings. You may disable the Default View using thefavoritesBarDefaultView() method:
hasDefaultView() method in the class where you have added the AdvancedTables trait:
Note: In prior versions this view was namedAll, however when clicking this view, it actually resets the table to it’s default settings, which may or may not contain all the records. For this reason, it was renamed todefaultin version 3. However, you may change the name of the Default View in the language file.
Tip: If you need anAllbutton in addition/instead of aDefaultbutton, you can easily create a Preset View that shows the data you need.
Default View icon
You may change the icon used for the Default View using thefavoritesBarDefaultIcon() method:
favoritesBarDefaultIcon()
Divider
If using both Preset Views and User Views, it may be helpful to have a divider line to help users visually distinguish between the two. You may use thefavoritesBarDivider() method to enable this:
Loading Indicator (New)
You may show a loading indicator when switching between views by using thefavoritesBarLoadingIndicator() method:
Disabling the Favorites Bar
You can disable the Favorites Bar entirely (helpful if you only want to use reorderable columns) by passingfalse to the favoritesBarEnabled() method:
favoritesBarIsEnabled() method on your List page: