google-code-export / gwt-ext

Automatically exported from code.google.com/p/gwt-ext
0 stars 0 forks source link

Toolbar is missing constructors for Element and ExtElement #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The Ext documentation states that the Toolbar widget can take either a
String, a HTML element or an Ext Element in its constructor.

Currently gwtext only supports a String. It needs to support the other two
parameter types.

Original issue reported on code.google.com by collin...@gmail.com on 23 Jul 2007 at 3:38

GoogleCodeExporter commented 9 years ago
When a Toolbar is constructed with an id passed to it, a new div is generated 
with
the toolbar rendered to it. Can you explain what you're trying to do and why 
you need
the other forms of constructors?

In Ext its not uncommon to attach Widgets to pre-existing placeholder div's in 
markup
but this is not the style by which GWT apps are built. In GWT you construct 
widget
objects and add them to panels.

Original comment by sanjiv.j...@gmail.com on 23 Jul 2007 at 11:26

GoogleCodeExporter commented 9 years ago
Sure. Basically I want to add a toolbar to a grid header panel as done in the 
Inline
Editing Grid Example in the Ext docs. I.e something like:

var gridHead = grid.getView().getHeaderPanel(true);
var tb = new Ext.Toolbar(gridHead, [{

<--snip-->

}]);

Original comment by collin...@gmail.com on 23 Jul 2007 at 11:21

GoogleCodeExporter commented 9 years ago
Added constructor that accepts ExtElement.

Original comment by sanjiv.j...@gmail.com on 24 Jul 2007 at 12:21