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