View Full Version : Ext form element look and feel

1 May 2007, 6:10 AM
Is there a way to 'skin' form elements types like 'file' and 'list/menu' (multiple select) that Ext doest support directly so that they have a consistent Ext visual appearance?

1 May 2007, 6:47 AM
You need to understand the rendered html of form elments and what css classes are applied to them - use Firebug to view the generated html. Then you'll have to do something similar with your new form elements, using the form css elements as a pattern for building new css entries (or using the high-level Ext form ones) to apply to your elements.

1 May 2007, 8:39 AM
A file upload is not skinnable since browsers do not support styling them. When skinning a dropdown field, Ext replaces the underlying <select> HTML element with custom markup, which is skinnable in every aspect. A <file> element is not replaceable because it needs access to client-side file system resources, and for security reasons no browser in the world should allow file system access to arbitrary custom markup.

1 May 2007, 8:43 AM
Thanks for clarifying guys

3 May 2007, 4:43 AM
Maybe this article will help you to achieve what you want: http://www.quirksmode.org/dom/inputfile.html