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
Developer
Posts: 160
Registered: ‎01-27-2012
My Device: Playbook
My Carrier: Rogers

Can you inherit Context Actions

I have a listview similar to the following with the following contextActions.  Is there a way that if you touch the listitems that they would use the context action of the listview or do you need to repeat the context actions in the custom list item?

 

Listview
{
...   

     contextActions: [
            ActionSet {
                ActionItem {
                    title: qsTr("Select All")
                    imageSource: "asset:///images/icons/selectall.png"
                    onTriggered: {
                        imagesList.selectAll()
                    }
                }
            }
      ]
        listItemComponents: [
            ListItemComponent {
                type: "customitem"
                customItem {
                }
            }
       ]

}

 

---
If you find my post helpful please "like" it and "accept as a solution"