Derrell Lipman | 9 Feb 21:50

Creating an extended ListItem class

I'm trying to create a replacement ListItem class, which I'm specifying with the createItem element of the delegate map. I've almost got it working, but I am forced to specifically call two of the properties "label" and "icon" instead of "title" and "image1" that I'd like for them to be, and I can't figure out how to do the binding for any other properties in the replacement class.


This is a stripped-down playground example where I have only three fields being displayed: title (which must be called label), image1 (which must be called icon), and numLikes. As you can see, the numLikes field displays its initial value ("wrong") instead of the value in the model. I'm probably missing a single line of code that would add all of the proper bindings, but I can't figure out what it is. Help greatly appreciated!

Here's the playground sample: http://tinyurl.com/78tfzdz

Thanks!

Derrell

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Mustafa Sak | 9 Feb 22:40
Picon
Favicon

Re: Creating an extended ListItem class

Hi Derrell,

 

It is a pleasure for me to be able to help you for the first time as an official 1und1 member. I hope my hints will be useful for you. But first here it goes to the modified playground: http://tinyurl.com/7owlrsy

 

As you can see, you did all right, but you can use bindItems to bind any model property with your custom widget. Second, it’s necessary to name events of bindable properties always including his name e.g.

icon :

{

                init : null,

                check : “String”,

                event : “changeIcon

}

 

I hope, I could you help a little.

 

Regards Mustafa Sak

 

Von: Derrell Lipman [mailto:derrell.lipman <at> unwireduniverse.com]
Gesendet: Donnerstag, 9. Februar 2012 21:51
An: qooxdoo Development
Betreff: [qooxdoo-devel] Creating an extended ListItem class

 

I'm trying to create a replacement ListItem class, which I'm specifying with the createItem element of the delegate map. I've almost got it working, but I am forced to specifically call two of the properties "label" and "icon" instead of "title" and "image1" that I'd like for them to be, and I can't figure out how to do the binding for any other properties in the replacement class.

 

This is a stripped-down playground example where I have only three fields being displayed: title (which must be called label), image1 (which must be called icon), and numLikes. As you can see, the numLikes field displays its initial value ("wrong") instead of the value in the model. I'm probably missing a single line of code that would add all of the proper bindings, but I can't figure out what it is. Help greatly appreciated!

 

Here's the playground sample: http://tinyurl.com/78tfzdz

 

Thanks!

 

Derrell

 

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Derrell Lipman | 9 Feb 22:57

Re: Creating an extended ListItem class

On Thu, Feb 9, 2012 at 16:40, Mustafa Sak <Mustafa.Sak <at> 1und1.de> wrote:

Hi Derrell,

 

It is a pleasure for me to be able to help you for the first time as an official 1und1 member.


Congratulations! Welcome! It's great to have you there.
 

I hope my hints will be useful for you. But first here it goes to the modified playground: http://tinyurl.com/7owlrsy


Fabulous. I knew there was something simple I was overlooking. That got me past that issue, and I'm now seeing a related but different problem, but I'll look into it myself before asking questions.
 

As you can see, you did all right, but you can use bindItems to bind any model property with your custom widget. Second, it’s necessary to name events of bindable properties always including his name e.g.

icon :

{

                init : null,

                check : “String”,

                event : “changeIcon

}


Yes, that makes sense, based on the way it gets called. I'm also now able to call them by "title" and "image1" instead of by "label" and "icon", so I have no need to name them other than what they're supposed to be.

Thanks for the quick response!

Derrell

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
slah | 10 Feb 00:10
Picon

Re: Creating an extended ListItem class

Hi guys,

nice work, please keep us updated.

Regards

Derrell Lipman wrote
> 
> On Thu, Feb 9, 2012 at 16:40, Mustafa Sak &lt;Mustafa.Sak@&gt; wrote:
> 
>> Hi Derrell,****
>>
>> ** **
>>
>> It is a pleasure for me to be able to help you for the first time as an
>> official 1und1 member.
>>
> 
> Congratulations! Welcome! It's great to have you there.
> 
> 
>> I hope my hints will be useful for you. But first here it goes to the
>> modified playground: http://tinyurl.com/7owlrsy
>>
> 
> Fabulous. I knew there was something simple I was overlooking. That got me
> past that issue, and I'm now seeing a related but different problem, but
> I'll look into it myself before asking questions.
> 
> 
>> As you can see, you did all right, but you can use bindItems to bind any
>> model property with your custom widget. Second, it’s necessary to name
>> events of bindable properties always including his name e.g. ****
>>
>> icon :****
>>
>> {****
>>
>>                 init : null,****
>>
>>                 check : “String”,****
>>
>>                 event : “changeIcon”****
>>
>> }
>>
> 
> Yes, that makes sense, based on the way it gets called. I'm also now able
> to call them by "title" and "image1" instead of by "label" and "icon", so
> I
> have no need to name them other than what they're supposed to be.
> 
> Thanks for the quick response!
> 
> Derrell
> 
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing 
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@.sourceforge
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 

--
View this message in context: http://qooxdoo.678.n2.nabble.com/Creating-an-extended-ListItem-class-tp7270677p7271057.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Gmane