Usually a button would be more interesting if there were image, in
this tutorial
i will give a
example how to use a icon in button extjs. I think a web developer have
been known it, and i am sure you can also create it with ease. But there
is nothing wrong if I write this tutorial, maybe there is not yet
known.
<script type="text/javascript"><!--
google_ad_client = "pub-7723751324457193";
google_alternate_color = "FFFFFF";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_ad_channel ="bismillah-search-defafe";
google_color_border = "#FFFFFF";
google_color_link = "#0000FF";
google_color_bg = "#FFFFFF";
google_color_text = "#000000";
google_color_url = "#333333";
//--></script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script><script>google_protectAndRun("ads_core.google_render_ad", google_handleError, google_render_ad);</script>
below
is a example code to create icon on button.
This code is part of javascript file
03
|
iconCls:
'icon-submit'
|
07
|
iconCls:
'icon-close'
,
|
“iconCls:’icon-close’,”
and “iconCls:’icon-submit’”
are main of this tutorial. icon-submit andicon-close are name of class
icon, and will load in html file.
here is a code of html file
This is a screen shot of this tutorial.
icone-in-button-extjs
http://defafe.com/icone-in-button