Thank for your reply
Maybe I did not understante the appeareance mechanism.
Please take a look to my code.
This is the appearence class
qx.Theme.define("vvftools.theme.Appearance",
{
extend : qx.theme.modern.Appearance,
appearances : {
"mywidget/date" : "datefield"
}
});
and these are some snippets from my widget
qx.Class.define("vvftools.training.myTraining.MyTraining",
{
extend : qx.ui.core.Widget,
include : [ qx.ui.form.MModelProperty,vvftools.CanWait ],
construct : function() {
this.base(arguments);
this.setAppearance("mywidget");
var layout = new qx.ui.layout.Grid(10, 10);
layout.setColumnFlex(4, 1);
this._setLayout(layout);
....
_createChildControlImpl : function(id)
{
var control;
var c;
switch(id)
{
....
case "date":
control = new vvftools.DateField();
this._add(control,
{
row : 0,
column : 3
});
break;
what is wrong?
Mustafa Sak-5 wrote
> Hi Massimo,
>
> the childControl mechanism of qooxdoo needs explicit appearances. So you
> have to set the appearance property of your custom widget. Then you have
> to bound the appearance of your child control manually to the existing
> one. E.g.
>
> Your custom widget appearance is "mywidget" and your date child control
> will have the child identifier "date" so you have to do like this in your
> Appearance class
>
> "mywidget/date" : "datefield"
>
> Gruß
> Mustafa Sak
>
> Applications & Integration
>
> 1&1 Internet AG
> Ernst-Frey-Straße 10
> DE-76135 Karlsruhe
>
>
> -----Ursprüngliche Nachricht-----
> Von: mappopo [mailto:
> mappopo@
> ]
> Gesendet: Freitag, 19. Juli 2013 13:22
> An:
> [email protected]
> Betreff: [qooxdoo-devel] DateField in custom widget
>
> Hi,
> I am trying do create a custom widget with an embedded DateField.
> If I add the DateField in the constructor with the _add method it look ok,
> but if I use _createChildControl and _createChildControlImpl the icon
> calendar on the right side is not shown.
>
> The problem also appear in playground at http://tinyurl.com/qe4qama
>
> Do I miss something? What is wrong in my code?
>
> Thanks in advance.
>
> Massimo
>
>
>
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/DateField-in-custom-widget-tp7584150.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics Get
> end-to-end visibility with application monitoring from AppDynamics Isolate
> bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/DateField-in-custom-widget-tp7584150p7584155.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel