anba2404
22 May 2008, 5:20 AM
Hello folks,
this post will help other newbies people like me.
I worked to open the DominoUI without the west panel (the outline).
My intention was to not customize the files 'extnd-all'.
At the end it was simply adding the custom code in the section 'init' in the function 'ExtndApp' declared in HTML Head of Content page 'Main'=D>
Probably this was known, but I could not find it serching the forum. So here is an example of code and a screeshot.
Long life ext.nd
...and sorry for my bad english :D
Andrea
6971
"<script type='text/javascript'>" + @NewLine +
" Ext.nd.init({extndUrl : '" + extndUrl + "', extUrl : '" + extUrl + "'});" + @NewLine +
" var ExtndApp = function() {
return {
init : function(){
this.ui = new Ext.nd.DominoUI({
uiOutline : {
outlineName: 'Outline01',
useOutlineIcons : true
},
uiView : {viewName: 'WebNewsData', viewTitle: 'Notizie - Per Data', showSearch: 'true'}
});
/**
=================
init personalization
=================
*/
//remove the outline panel and refresh the viewport
this.ui.outlinePanel.hide();
this.ui.viewport.doLayout();
/**
=================
end personalization
=================
*/
} // init
} // return
}();" + @NewLine +
" Ext.onReady(ExtndApp.init, ExtndApp, true); " + @NewLine +
"</script>" + @NewLine +
this post will help other newbies people like me.
I worked to open the DominoUI without the west panel (the outline).
My intention was to not customize the files 'extnd-all'.
At the end it was simply adding the custom code in the section 'init' in the function 'ExtndApp' declared in HTML Head of Content page 'Main'=D>
Probably this was known, but I could not find it serching the forum. So here is an example of code and a screeshot.
Long life ext.nd
...and sorry for my bad english :D
Andrea
6971
"<script type='text/javascript'>" + @NewLine +
" Ext.nd.init({extndUrl : '" + extndUrl + "', extUrl : '" + extUrl + "'});" + @NewLine +
" var ExtndApp = function() {
return {
init : function(){
this.ui = new Ext.nd.DominoUI({
uiOutline : {
outlineName: 'Outline01',
useOutlineIcons : true
},
uiView : {viewName: 'WebNewsData', viewTitle: 'Notizie - Per Data', showSearch: 'true'}
});
/**
=================
init personalization
=================
*/
//remove the outline panel and refresh the viewport
this.ui.outlinePanel.hide();
this.ui.viewport.doLayout();
/**
=================
end personalization
=================
*/
} // init
} // return
}();" + @NewLine +
" Ext.onReady(ExtndApp.init, ExtndApp, true); " + @NewLine +
"</script>" + @NewLine +