PDA

View Full Version : Remove Toolbar from NestedList



jbrooksuk
2 Feb 2011, 3:27 AM
Following on from my previous question, is there an elegant way not to have a toolbar display inside a NestedList?

James

jbrooksuk
2 Feb 2011, 3:40 AM
So it seems that doing something like:

var dockedItems = mySettings.getDockedItems();
dockedItems[0].destroy();
mySettings.doComponentLayout();
Will almost work, only the layout doesn't get re-drawn without the toolbar, i.e. there is a gap at the top of the list.

Any suggestions?

jbrooksuk
2 Feb 2011, 3:50 AM
Scratch that.

If the back button exists, then it will remove that instead of the whole toolbar. Ideas?

evant
2 Feb 2011, 3:55 AM
There is a useToolbar option however it's accidentally been omitted from the docs. I'll fix it up for the next version.

jbrooksuk
2 Feb 2011, 4:01 AM
There is a useToolbar option however it's accidentally been omitted from the docs. I'll fix it up for the next version.

Awesome! Thanks evant!