Custom Widget Issue...

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Custom Widget Issue...

Jonathan Wolfe
Hi,

I'm getting trying to make a custom date/time chooser and I am getting this error:

015859 qx.theme.manager.Appearance[24-0]: Cannot find a matching appearance for 'combobox/timechooser/minute-decrement-button'.
edd.cfbb47184fa8.js:284 
015886 qx.theme.manager.Appearance[24-0]: Hint: This may be an issue with nested child controls and a missing alias definition in the appearance theme.

I thought the following should work, but it doesn't. I'm not sure what is the issue based on the hint. Any suggestions?

// In  Appearance.js class
"combobox/timechooser":{
alias: "timechooser"
},
"timechooser/minute-decrement-button" : "spinner/downbutton",

// In my TimeChooser.js class
properties :
{
// overridden
appearance :
{
refine : true,
init : "timechooser"
}
}
...
control.add(this.getChildControl("minute-decrement-button"),
{
row : 2,
column : 2
});


------------------------------------------------------------------------------

_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: Custom Widget Issue...

Mustafa Sak-5

Hi, please try thiis:

 

"combobox/timechooser/minute-decrement-button" : "timechooser/minute-decrement-button"

 

Dank & Gruß
Mustafa Sak

Softwareentwickler
Mail Development

1&1 Mail & Media Development & Technology GmbH | Brauerstraße 48 | 76135 Karlsruhe | Germany
Phone: +49 721 91374-6977
E-Mail: 
[hidden email] | Web: www.1und1.de

 

Von: Jonathan Wolfe [mailto:[hidden email]]
Gesendet: Mittwoch, 10. Juni 2015 01:58
An: qooxdoo Development
Betreff: [qooxdoo-devel] Custom Widget Issue...

 

Hi,

 

I'm getting trying to make a custom date/time chooser and I am getting this error:

 

015859 qx.theme.manager.Appearance[24-0]: Cannot find a matching appearance for 'combobox/timechooser/minute-decrement-button'.

edd.cfbb47184fa8.js:284 

015886 qx.theme.manager.Appearance[24-0]: Hint: This may be an issue with nested child controls and a missing alias definition in the appearance theme.

 

I thought the following should work, but it doesn't. I'm not sure what is the issue based on the hint. Any suggestions?

 
// In  Appearance.js class
"combobox/timechooser":{
   alias:
"timechooser"
},
"timechooser/minute-decrement-button" : "spinner/downbutton",
// In my TimeChooser.js class
properties :
{
 
// overridden
 
appearance :
  {
    refine :
true,
    init :
"timechooser"
 
}
}
...
control.add(this.getChildControl("minute-decrement-button"),
{
  row :
2,
  column :
2
});
 

------------------------------------------------------------------------------

_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: Custom Widget Issue...

SQville
In reply to this post by Jonathan Wolfe
Johnathan,

I don't think you need "combobox/" in front of "timechooser"

Since TimeChooser is your top level widget (vs a ChildWidget) all you need to do is set it's appearance property (which you did) and make sure that value is in your Appearance.js file (as "timechooser" and not "combobox/timechooser"). And you don't need to alias it, just start using it

Chris
Reply | Threaded
Open this post in threaded view
|

Re: Custom Widget Issue...

Jonathan Wolfe
Hey,

I've tried both Chris and Mustafa's suggestions without success.  Here is what I have now with the same errors:
qx.Theme.define("qxnws.theme.Appearance",
{
extend : qx.theme.modern.Appearance,
appearances :
{
/*********** TimeChooser *******************/
"timechooser/main-bar" : {

},

"timechooser" : "spinner", // <--- I tried commenting this out
"combobox/timechooser" : "spinner", // <--- I tried commenting this out
"timechooser/hour-increment-button" : "spinner/upbutton",
"timechooser/minute-increment-button" : "spinner/upbutton",
"timechooser/am-pm-increment-button" : "spinner/upbutton",
"timechooser/hour-decrement-button" : "spinner/downbutton",
"combobox/timechooser/hour-decrement-button" : "spinner/downbutton",
"timechooser/minute-decrement-button" : "spinner/downbutton",
"timechooser/am-pm-decrement-button" : "spinner/downbutton",
"timechooser/hour-field" : "spinner/textfield",
"timechooser/minute-field" : "spinner/textfield",
"timechooser/am-pm-field" : "spinner/textfield",


 Jonathan Wolfe Meteorologist            
        Charleston, WV National Weather Service
        304-746-0190

On Wed, Jun 10, 2015 at 9:16 AM, SQville <[hidden email]> wrote:
Johnathan,

I don't think you need "combobox/" in front of "timechooser"

Since TimeChooser is your top level widget (vs a ChildWidget) all you need
to do is set it's appearance property (which you did) and make sure that
value is in your Appearance.js file (as "timechooser" and not
"combobox/timechooser"). And you don't need to alias it, just start using it

Chris



--
View this message in context: http://qooxdoo.678.n2.nabble.com/Custom-Widget-Issue-tp7587217p7587220.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------

_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel