PDA

View Full Version : Displaying SVG Data on Panel



ExtJSBeginner
5 Aug 2009, 9:56 PM
Dear all

I have some SVG Images on the server which i'd like to be displayed on a Panel. Is this possible? If yes: how can I accomplish this? I guess it won't be possible to just add it as html

thanks for your ideas...

Animal
5 Aug 2009, 10:09 PM
Configure your Panel with



bodyCfg: {tag: 'whateverTagNamehandlesSVG'}


Then the body element of the Panel will be whatever element type handles SVG. I don't know anything about it, so I don't know what tag name to use.

Condor
6 Aug 2009, 1:09 AM
The tag name is 'object'.

I recommend using the ux.Media extension (http://extjs.com/forum/showthread.php?t=23983) for this.