Untitled UI logotext
Solutions
WebsitesEcommerceMobile AppsWeb AppsProduction Support & Maintenance
Our work
Company
About usBlogPodcastContact us
Book a free consultation

Putting Ext JS toolbar items on the right side

Olivia Rhye

I wanted to add an item to a toolbar in one of my ExtJS panels but was having a little trouble. I could get them on the toolbar fine but I wanted them displayed on the right side of the panel. This was proven tricky, especially as I'm rather new to ExtJS

Then I found the "tbfill" xtype. This made it simpler than it ever could be:


var tb = new Ext.Toolbar({
items: [{ xtype: 'tbfill' },
{text: 'Compliment me', handler: function(){ alert('Nice...umm...hair?!'}}
]
});

It's quick tools like this that have really got me hooked on ExtJS.

Ready to start a project?

Book a free consultation
Untitled UI logotext
Our work
About us
Blog
Careers
Submit a ticket
Agency Partnerships
Contact
© 2024 fjorge. All rights reserved.
Privacy