javascript - ExtJS: Rendering an image to an existing div -


i using extjs in rather complex ui project. have config object similar this:

{     xtype: 'component',     html: "<a href='some link'>some text</a><div id='somedivid'/>" } 

further down in function create image this: ext.create('ext.img', {/* image config */});

how put image generated ext.create dom element somedivid?

all need renderto config.

ext.create( 'ext.img',     {         ...         renderto: 'somedivid' // can use ids directly, html elements , ext elements     } ); 

documentation: http://docs.sencha.com/extjs/4.2.3/#!/api/ext.img-cfg-renderto


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -