On Sat, Feb 11, 2012 at 15:59, Mustafa Sak <[email protected]> wrote:

> Yes, at delegate you can use configureItem (hope I remember the key
> correctly).
>

Yup, that was it, and I have it working now. Thanks!

One more question: There are multiple of these big list items visible on
the screen. If I click on the title field within one of them, the event is
fired as it should be. If, however, the entire list item is not visible in
the scroller, instead of firing the event for having clicked on the title
field, instead it just scrolls that item fully into view and I then have to
click again. How might I get the event passed through to my event handler,
in addition to (or instead of) scrolling the entire list item into view?

Derrell




>
> Von meinem iPhone gesendet
>
> Am 11.02.2012 um 21:31 schrieb "Derrell Lipman" <
> [email protected]>:
>
> > Using qx.ui.list.List, I have created a replacement ListItem class
> (SearchResult) which instead of displaying only a single Atom, displays a
> whole bunch of widgets in a grid layout. I need the ability to issue events
> when certain widgets within the ListItem are clicked.
> >
> > Firing the event is easy: the particular widget within the grid listens
> for its "click" event and then fires a new Data event, something like this,
> where 'title' is a Label within the SearchResult list item:
> >
> > title.addListener(
> >   "click",
> >   function(e)
> >   {
> >     var searchResult = e.getTarget().getLayoutParent();
> >     this.fireDataEvent(
> >       "viewApp",
> >       {
> >         uid : searchResult.getUid(),
> >         title : searchResult.getTitle()
> >       });
> >   },
> >   this);
> >
> > I don't have direct access to the ListItem (SearchResult) widgets in the
> virtual infrastructure, though, as they are reused as scrolling occurs.
> Where do I add my event listener for "viewApp"? Someplace in the delegate?
> >
> > 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
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
> ------------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to