Ext.PanelExt.ux.JsonPanel
Package: | Ext.ux |
Defined In: | Ext.ux.JsonPanel.js |
Class: | JsonPanel |
Extends: | Ext.Panel |
Example how to create a Json from a external file filling the browser:
new Ext.Viewport({
items : new Ext.ux.JsonPanel({autoLoad:'json/designer.json'}),
layout: 'fit'
}).show();
Example how to (re)load a JsonPanel that is allready loaded:
this.load({url:'new url'});
IMPORTANT:When you want use the JsonPanel to load a Json file in a local browser make sure that you include a local xhr package like localXHR or any other to fix the problem of ExtJs not supporting Ajax from local file system
Config Options | Defined By | |
---|---|---|
blockedJsonInit : Array
Array with items which should be blocked during init
Array with items which should be blocked during init
|
JsonPanel JsonPanel |
This class has no public properties.
Property | Defined By |
---|
This class has no public methods
Method | Defined By |
---|
Event | Defined By | |
---|---|---|
beforejsonload : ( Object response, Exception e )
Fires after the jsonfile is retrived from server but before it's loaded in panel
Fires after the jsonfile is retrived from server but before it's loaded in panel
Listeners will be called with the following arguments:
|
JsonPanel JsonPanel | |
afterjsonload : ( )
Fires when loading of jsonfile fails
Fires when loading of jsonfile fails
Listeners will be called with the following arguments:
|
JsonPanel JsonPanel |