Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Regular Contributor
Posts: 94
Registered: ‎04-07-2011
My Device: PlayBook
My Carrier: QED

JIRA Issue Required ?

Consider these three QML files from three projects:

 

(1) cascadescookbookqml : RecipeItem.qml

 

(2) ListViewBulkLoad     : ListItem.qml

(3) ListViewPagedLoad : ListItem.qml

 

(These are the two "ScrollableLists" project variants.)

 

Each of the QML files contains either or both of these handlers:

 

    ListItem.onSelectedChanged : {
        setHighlight(ListItem.selected);
    }

    ListItem.onActiveChanged : {        
        setHighlight(ListItem.active);
    } 

First,  AFAIK, there is no documentation for these (and other?) handlers. Should a JIRA issue be created to this effect?

 

Second, by adding console.log(...) statements (to the first of the handlers listed in the code, above), I see that not only does ListItem.onSelectedChanged get called when a list item is selected, but (after editing the handler name to onSelectionChanged) "onSelectionChanged" works just as well. So what exactly is going on here?

Retired
Posts: 329
Registered: ‎05-07-2012
My Device: BB Alpha
My Carrier: N/A

Re: JIRA Issue Required ?

Hi there,

 

I see this thread has been left unattended. Are you still having issues?

 

If documentation is missing, I would strongly encourage a JIRA for that;

In your message you refer to 'onActiveChanged'. Is this getting hit as well when you change selection?

 

Martin