View Single Post
Old 08-20-2011, 07:32 PM   #21
f8d3gfdy
 
Posts: n/a
Default

Morning JAVAEYE forum posts by people answered to solve a problem is my drop-down box above the page and select the box icon to display the date in question. Solutions are,nike force one, in fact, the question of resources: Ext.BLANK_IMAGE_URL = '. ./ext20/resources/images/vista/s.gif '; add this sentence at the beginning of the js file. Note that the path to the right can.
Links Here is an article, but also on the icon The.
used Ext (http://www.extjs.com) of the comrades should know that each component (Component) in the initialization time,air force 1 classic mid, there will be a configuration parameter (Config) {in Ext2 , basically all of the component's constructor takes a single argument, or a Config Object,nike air force ones, or is an Array of Config Object}, in which many components, such as Menu,air force one, Button has a configuration option iconCls Obviously, this is the icon used to configure the buttons, so assume that we want to initialize a Button, we write in the JS in:
var button = new Ext.Button ({
; text: \});
then we will write down the following rules in the CSS:
. hello-button {
background: url (images / hello.png) left top no-repeat;
}
the JS and CSS files to the page which introduces the right, we can only see the buttons placed above the picture out of a position, and the picture does not shown, through the use of Firebug (http://www.getfirebug.com) to view the page, we have generated through the Inspect button in the Style, we found that CSS rules hello-button CSS rules are covered by the original Ext lost. However, the official to the Sample can be used in the, ah, see Sample in the CSS, I found it much more than what I wrote his words,! Important, then, I put my existing CSS rules be amended to:
. hello-button {
background: url (images / hello.png) left top no-repeat,nike air force one low! important;
}
Bingo ~ The pictures shown on the right button.
course, according to the official API, you have to add another icon on the button method, the Config button the following settings:
var button = new Ext.Button ({
text: \br> cls: \location is written to the JS, there is no part of the performance from the JS will depart from, if you use the first method, you can more easily change a button's icon.
Source: http://bbiao.spaces.live.com/blog/cns!C201294984BAF810,air force ones!865.entry
  Reply With Quote

Sponsored Links