-
17 Sep 2010 1:19 PM #11
-
20 Sep 2010 4:51 AM #12
-
22 Jan 2011 7:47 AM #13
Hi,
I used this extension, which is great. However there is a little problem with the initial rendering. I've rendered the component in the tbar of a window which has the following result:
http://www.webtricksframework.com/Naamloos.jpg
Anyone know how to fix this?
-
24 Jan 2011 7:37 AM #14
Looks like You are missing icons, that, could be the problem!
-
24 Jan 2011 8:50 PM #15
Yes I agree too that this very useful information and cool in using this toolbar...
______________________________________________
formica laminate
-
28 May 2011 8:41 AM #16
Update
Update
I have changed initRibbon to use '->', '-' and ' ' as a normal toolbar.
ByeCode:initRibbon: function(item, index) { var tbarr = new Array(); for (var j = 0; j < item.ribbon.length; j++) { if (item.ribbon[j] == '->') { tbarr.push(new Ext.Toolbar.Fill()); } else if (item.ribbon[j] == '-') { tbarr.push(new Ext.Toolbar.Separator()); } else if (item.ribbon[j] == ' ') { tbarr.push(new Ext.Toolbar.Spacer()); } else { for (var i = 0; i < item.ribbon[j].items.length; i++) { if (item.ribbon[j].items[i].scale !== "small") { item.ribbon[j].items[i].text = String(item.ribbon[j].items[i].text).replace(/[ +]/gi, "<br/>"); } } c = { xtype: "buttongroup", cls: "x-btn-group-ribbonstyle", defaults: { scale: "large", iconAlign: "top", minWidth: 40 }, items: item.ribbon[j].items }; title = item.ribbon[j].title || 'Ribbon Title'; topTitle = item.ribbon[j].topTitle || false; onTitleClick = item.ribbon[j].onTitleClick || false; if (onTitleClick) { titleId = 'ux-ribbon-' + Ext.id(); title = '<span id="' + titleId + '" style="cursor:pointer;">' + title + '</span>'; this.titleId.push({ id: titleId, fn: onTitleClick }); } if (!topTitle) { Ext.apply(c, { footerCfg: { cls: "x-btn-group-header", tag: "span", html: title } }); } else { Ext.apply(c, { title: title }); } cfg = item.ribbon[j].cfg || null; if (cfg) { Ext.applyIf(c, item.ribbon[j].cfg); if (cfg.defaults) Ext.apply(c.defaults, cfg.defaults); } tbarr.push(c); } } Ext.apply(item, { baseCls: "x-plain", tbar: tbarr }); }
Pasquale
-
12 Jul 2012 11:00 AM #17
Hi Guys,
Thanks for the ribbon code, it looks really cool
I'm playing around with a ribbon & am wondering, how can I get the last ribbon group in my toolbar to fill to the screen width and get those buttons to align to the right side ? Possible ?
Cheers
Tim
Similar Threads
-
Microsoft Office style menubar
By Beer Brother in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 16 May 2010, 11:52 AM -
Problem with Microsoft Office 2003 Web Components
By hezhanfei in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 9 Dec 2009, 10:22 PM -
Toolbar like Office 2007 (Ribbon)
By kimmaydesign in forum Ext 3.x: Help & DiscussionReplies: 6Last Post: 18 Aug 2009, 8:22 AM -
ribbon Extension menubar like office 2007
By august in forum Ext 1.x: User Extensions and PluginsReplies: 2Last Post: 28 Aug 2008, 3:01 AM -
Thoughts on building an MS Office ribbon
By SeaSharp in forum Community DiscussionReplies: 1Last Post: 22 Nov 2007, 4:40 AM




Reply With Quote