Flamingo - Panels Improvements
- XWiki
- Implementation
- Completed
- [Proposal] Improve our Panels technology http://markmail.org/thread/pwrf6kpe6wyt7ye4 (Apr 10, 2014)
Description
After some discussions about the Flamingo Application Bar, we have decided that we can make something more generic and flexible by improving the panels feature.
Related Proposals
Objective
We want to be able to propose something like this:
Add the ability to change the panels columns widh
The panel wizard should be improved to allow the user to change the columns width. Actually, we would propose 2 (or 3) options:
- Small
- Normal
- (Large ?)
Panels can change their aspect depending on the column width
A new variable, called $panelWidth, can be introduced in the velocity context, enabling the panel to adapt their content depending on the width.
Example:
## Display stuff as icons
#else
## Display stuff as a list
#end
Panels can register what sizes are supported
For panels that need, by design, a certain minimal width to be displayed, we can introduce a new field in the panel class, which would be "supportedSizes", with theses checkboxes:
[ ] Normal
When the field does not exists in the panel, the fail back will be "only normal is supported". So the existing panels would not be able to be displayed in a small column.
Every applications must provide a panel
A new rule could be added for applications. They must provide a panel with the icon and the name of the application. The goal of these panels is to provide a nice shortcut to the application, in order to use the panels column like the "dock" in MacOS:
Then, users can put in their panel columns their favourite applications, by using the panel wizard.
Example:
A new panel category: "Applications"
All theses new panels should be in the "Applications" category, in order to filter them efficiently in the panel wizard.
Application Bar
With this proposal, the concept of applications bar is not needed anymore. The application bar was designed to be a customizable list of favourite applications. It seems better to re-use and improve the panels technology instead of creating a new one.
Add the ability to display/hide the panels columns
Like the MacOS dock, it should be possible to hide/display a panels column with a button.