blob: 4e83baade5cc8132beabfc1c8f2a35a7f01e4cc6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
(function( app ) {
var ui = app.ns("ui");
ui.JsonPanel = ui.InfoPanel.extend({
defaults: {
json: null, // (required)
modal: false,
open: true,
autoRemove: true,
height: 500,
width: 600
},
_baseCls: "uiPanel uiInfoPanel uiJsonPanel",
_body_template: function() {
var body = this._super();
body.children = [ new ui.JsonPretty({ obj: this.config.json }) ];
return body;
}
});
})( this.app );
|