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
Highlighted
Contributor
Posts: 13
Registered: ‎03-06-2013
My Device: Blackberry 10, blackberry java
My Carrier: Movistar

this in ontriggered

Hello.

 

i'm trying this:

 

ComponentDefinition {
            id: newTab
            Tab {
                property int iId
                Page {
                }
                onTriggered: {

                    //pass this tab as parameter
                    _app.doSomeThing(this)
                }
            }
        }

}

 

i want pass the tab which contains the slot onTriggered but no specify the id of this tab.
the tab will be created dynamically so i don't know that id will.

thanks

 

 

Developer
Posts: 16,987
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: this in ontriggered

set a property on the newly created object and use that to identify it.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter