johnO
24 Mar 2008, 10:07 PM
After looking at http://extjs.com/forum/showthread.php?t=25723#10 it seemed sensible to implement a multi-line layout that presents a toolbar in the way that Microsoft has done their ribbon. This implementation achieves this by changing the TableLayout to process items based on a row constraint (rather than the TableLayout column constraint).
The result is this table layout which is called a "cluster" so that it is unique. The cells are added top to bottom - left to right.
An additional feature is added to ensure that there are enough rows to contain the rowspan: a blank cell is added to rows where needed.
Updated picture is attached.
Two additional features are planned:
1. A two-state collapse algorithm that monitors the right edge with respect to the screen.
2. An implementation of short-cut keys along the lines of Office 2007.
Attached in the zip is the layout with two simple samples which should be extracted under the Ext examples folder. Also attached is an initial view where this layout is applied to the new feature created by Animal in the thread above.
________
Menu using the cluster layout has been added with the following files:
1. CSS for 32x32 px icons with text below the icon - toolbar.button.32px.css
2. Simple example script - clusterMenu.html/clusterMenu.js
SwitchButton is not functioning in IE but is working fine in Firefox and Safari.
The result is this table layout which is called a "cluster" so that it is unique. The cells are added top to bottom - left to right.
An additional feature is added to ensure that there are enough rows to contain the rowspan: a blank cell is added to rows where needed.
Updated picture is attached.
Two additional features are planned:
1. A two-state collapse algorithm that monitors the right edge with respect to the screen.
2. An implementation of short-cut keys along the lines of Office 2007.
Attached in the zip is the layout with two simple samples which should be extracted under the Ext examples folder. Also attached is an initial view where this layout is applied to the new feature created by Animal in the thread above.
________
Menu using the cluster layout has been added with the following files:
1. CSS for 32x32 px icons with text below the icon - toolbar.button.32px.css
2. Simple example script - clusterMenu.html/clusterMenu.js
SwitchButton is not functioning in IE but is working fine in Firefox and Safari.