Skip to content
Snippets Groups Projects
Commit 4089a89b authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Add the configuration panelLoader to the BaseWithSelector class.

parent 45d6820f
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,7 @@ leaf_2 = PanelWithUrlSelector(virtdb.foo1,
baseUrl=URL('reports', 'report_2'),
baseParams={'hello': 3},
extField='my_format',
panelLoader={"renderer": "html", "scripts": True},
plugins=['pMathJax'])
leaf_3 = PanelWithUrlSelector(virtdb.harvester_selector,
......
--------------------------------- CHANGE LOG ----------------------------------
HEAD
- Add protection in CLEAN_COMMA and CLEAN_SPACES.
- Add the configuration panelLoader to BaseWithSelector.
0.6.1.1 (Mar 2014)
- Consolidation version
......
......@@ -50,6 +50,18 @@ Ext.define('App.panel.BaseWithSelector', {
*/
panelDefaults: null,
/**
* @cfg {Ext.ComponentLoader/Object}
* A configuration object or an instance of a {@link Ext.ComponentLoader}
* to load remote content for this Component. By default, the content
* loaded will be processed as raw html. The response text from the
* request is taken and added to the component. This can be used in
* conjunction with the scripts option to execute any inline scripts
* in the resulting content.
*
*/
panelLoader: {},
/**
* @cfg {Object}
* The selector items.
......@@ -143,7 +155,7 @@ Ext.define('App.panel.BaseWithSelector', {
itemId: 'mainPanel',
items: this.panelItems,
layout: 'fit',
loader: {},
loader: this.panelLoader,
plugins: ['pPanelLoaderException'],
region: 'center'
}, {
......
......@@ -6,3 +6,6 @@
<h4>request.vars:</h4>
{{=BEAUTIFY(vars)}}
<hr>
<script type="text/javascript">
Ext.Msg.alert("Hello", "Execute inline script");
</script>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment