[Users] GeoExt popup

Andreas Hocevar ahocevar at opengeo.org
Sat Nov 28 15:42:47 CET 2009


Hi,

now I see what your problem is:

you cannot have both html and items in a panel. If you want that, you 
need to wrap the html in a separate panel:

popup = new GeoExt.Popup({
                        title: 'My Popup',
                        feature: feature,
			width: 200,
                        height: 200,
			   items:[{
				xtype: 'columnchart',
				store: getStore(),
				yField: 'hits',
				xField: 'month',
				xAxis: new Ext.chart.CategoryAxis({
					title: 'Month'
				}),
				yAxis: new Ext.chart.NumericAxis({
					title: 'Hits'
				}),
				extraStyle: {
				   xAxis: {
						labelRotation: -90
					}
				}
			    }, {html: getInfo()}],
			layout: 'fit',   
			
            collapsible: true
        });


Regards,
Andreas.

zeferino saugene wrote:
> Thank you for the support.
>
> --
> Zeferino
>
>
> On Fri, Nov 27, 2009 at 8:57 AM, Andreas Hocevar <ahocevar at opengeo.org> wrote:
>   
>> Eric Lemoine wrote:
>>     
>>> On Thursday, November 26, 2009, Andreas Hocevar
>>> <andreas.hocevar at gmail.com> wrote:
>>>
>>>       
>>>> Hi,
>>>>
>>>> I am not familiar with Ext charting, but items is an array.
>>>>
>>>>         
>>> IIRC it is possible to give "items" a single item.
>>>
>>>       
>> So it looks like the OP's problem is how to configure the chart.
>>
>> zeferino, Can you verify that the chart works in a different container and
>> then try again to add it as an item? In terms of items, the Popup is nothing
>> different than a Panel or a Window in Ext JS.
>>
>> Regards,
>> Andreas.
>>
>>     
>>> cheers,
>>>
>>>
>>>       
>> --
>> Andreas Hocevar
>> OpenGeo - http://opengeo.org/
>> Expert service straight from the developers.
>>
>>
>>     
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>   


-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.



More information about the Users mailing list