PDA

View Full Version : Ext.ux.TDGi.icons <-- repackaged famfamfam silk icon set!



jay@moduscreate.com
9 Jul 2009, 3:37 PM
Just an update, this thing works with Ext 3.0

original page: http://tdg-i.com/52/tdgiiconmgr-and-iconbrowser-update
http://tdg-i.com/img/screencasts/2008-08-20_1723.png

example usage:


var getIcon =Ext.ux.TDGi.iconMgr.getIcon;

...
iconCls : getIcon('cross')
...

smokeman
9 Sep 2009, 7:43 AM
nice!

Urkman
9 Dec 2009, 6:08 AM
Hello,

I tried your extension, and it seams to work quite fine.
But there I have some questions:

1.) What is the best way to create the icons.js file?
2.) Is it possible to show the count of the display icons?
3.) Why you have removed the "setPath()" Function? So I need to change your Code to use it.

Thanks and greetings,
Urkman

jay@moduscreate.com
9 Dec 2009, 6:33 AM
Urkman,

What do you mean by "Create the icons.js file"?

I honestly don't understand any of your questions.

Urkman
9 Dec 2009, 8:43 AM
Hello,


Urkman,
What do you mean by "Create the icons.js file"?
I honestly don't understand any of your questions.

I try to be a little more detailed :-)

1.) I add some more icons( Silk Compansion II ) to my folder, so I want to extend the icons.js file...
2.) I would like to see the count of icons shown in the list.
3.) I one older version of the extension you had a function setPath(), I found that in some Documention. So the older call was: Ext.ux.TDGi.iconBrowser.setPath('images').show(); When I now need to change the Folder I need the change the source code and not just the call...

Hope you now understand what I mean...

Greetings,
Urkman

jay@moduscreate.com
9 Dec 2009, 8:55 AM
1: a simple shell script does this.



garciaj-osxi-6:TDGi.iconSpriteMgr garciaj$ cat x
echo "["

icons=`ls icons/ | grep \.png | awk -F. '{print $1}'`
numIcons=`echo $icons | wc -l`
X=0

for i in `echo $icons`
do
printf "['$i']"
if [ $X -lt $numIcons ]; then
X=`echo $X+1 |bc`
printf ","
fi
done
echo "];"
garciaj-osxi-6:TDGi.iconSpriteMgr garciaj$ ./x icons.js


2) just get icons.length

3) I am hoping to fix this with the next release called TDGi.iconSpriteManager, which lumps all icons into one long sprite :)

simplessus
10 Feb 2010, 9:11 AM
Hello,

is there a chance to integrate the TDG Icon Browser into the RowEditor plugin without modifying the original RowEditor source code ?

Best regards,
Bjoern