PDA

View Full Version : How to use extjs with phantomjs?



usavahe
15 May 2014, 2:41 PM
I've just discovered phantomjs and need to use it with my extjs4 app to create pdf reports.
I tried many places for examples or directions but could not find any hints to help me with this.

Did anyone know how to use extjs with phantomjs. A small example would be very much appreciated.

I can even provide small extjs code and want to see the appropriate code for phantomjs:


Ext.create('Ext.Component',
{
html: 'Hello world!',
width: 300,
height: 200,
padding: 20,
renderTo: 'surface'
});


Thanks :)

Gary Schlosberg
16 May 2014, 3:03 PM
Have you seen this guide page?
http://docs.sencha.com/extjs/4.2.2/#!/guide/testing-section-setting-up-phantomjs%3A