PDA

View Full Version : Open DominoUI without the outline panel. Show only the view (SOLVED)



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 +

jratcliff
22 May 2008, 6:35 PM
Good job! =D>

RWaters
23 May 2008, 1:28 PM
The next release will make creating a variety of layouts immensely easier. We'll definitely provide some examples of various layouts as well.

dbeckitt
3 Sep 2008, 9:52 PM
The next release will make creating a variety of layouts immensely easier. We'll definitely provide some examples of various layouts as well.
I'd definitely be keen to see some more examples of layouts if they were available. Is there any chance of seeing some examples, given that the next Ext.nd release may not be ready yet?