View Full Version : CSS classes
gpasq
31 Aug 2007, 12:12 PM
Are the CSS classes implemented by a control documented anywhere? I've been muddling through the included css files, but that's tedious!
Thanks in advance.
-Greg
Animal
31 Aug 2007, 12:14 PM
What do you mean? Why would you read CSS files?
gpasq
31 Aug 2007, 12:57 PM
How else, for example, do I determine that a BasicDialog has a .x-dlg-dlg-body that I can set for a theme?
Animal
31 Aug 2007, 1:04 PM
Ah, you're wanting to write a theme? Big job. You'll have to just read the CSS files!
Animal
31 Aug 2007, 1:04 PM
You know that you can examine what classes are applying to what easily by using Firebug don't you?
gpasq
31 Aug 2007, 1:08 PM
Well.... REALLY what I want to do is just "untheme" BasicDialog. I have a special need wherein I have to have a typeahead-dropdown that implements specific functionality. I'm hoping to use BasicDialog as the drop down primarily because it already implements a number of things I'd otherwise need to implement. But the theming on it has to go; for example, I can't use the header.
I do want to keep some of it though... for example, I'd like to keep the resizer in the SE corner.
gpasq
31 Aug 2007, 1:09 PM
Yes, I do know I can use Firebug, but that's still reverse-engineering. I was hoping it was doc'd somewhere.
Thanks!
Animal
31 Aug 2007, 1:12 PM
You could use a Layer to display your dropdown.
But why not use a ComboBox?
http://extjs.com/deploy/ext/docs/output/Ext.form.ComboBox.html
Or if you really need specific capabilities, a TriggerField.
http://extjs.com/deploy/ext/docs/output/Ext.form.TriggerField.html
With a Layer as the dropdown.
BasicDialog is overkill for what you want.
gpasq
31 Aug 2007, 1:14 PM
Because I need to put a datagrid in the dropdown and implement multiple selections as the field's resulting value. Possible?
Animal
31 Aug 2007, 1:15 PM
Very possible, see http://extjs.com/deploy/ext/examples/form/forum-search.html
gpasq
31 Aug 2007, 1:17 PM
Perfect! Thanks!
Animal
31 Aug 2007, 1:20 PM
There are examples of multi select Combos, and custom TriggerField classes in the forum.
gpasq
31 Aug 2007, 1:21 PM
When I was looking through the examples, it didn't dawn on me that the livesearch was similar to what I wanted. Didn't see the forest for the trees. Thanks for pointing it out.
gpasq
31 Aug 2007, 2:21 PM
Animal, I see that it is possible to put a template on the combo box, but is it possible to put a full-blown Ext grid? I'd like the functionality that Grid provides (resizable columns, etc.), but the template seems to be row oriented and not dataset oriented.
Animal
31 Aug 2007, 11:39 PM
No, the ComboBox uses a View which just displays fields from a Store of Records according to an HTML template. You woudn't get Grid features.
I think the best thing would be to subclass TriggerField, and study how ComboBox works.
On trigger, show the Layer.
The Layer and its Grid, ColumnModel, Store etc should only be created once.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.