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

Posts: 1
Registered: ‎10-21-2013
My Device: Z10
My Carrier: xxX

Access acceptAction to hide it

[ Edited ]


As I am a complete beginner in QML this question is probably pretty simple but I cant seem to get it working.

I would like to hide the acceptAction in the titlebar if a certain button is pressed. something like this:


if(accetAction.visible == true) {

  acceptAction.visible == false



That doesnt work and from what I can find out I need to access the setacceptAction somehow.
 But how?


Thankful for any help.


Posts: 293
Registered: ‎10-15-2012
My Device: bb10 developer
My Carrier: Orange

Re: Access acceptAction to hide it

ActionItems do not appear to have a 'visible' property - you can either enable/disable it, or you will have to dynamically create it when you need it. I'd opt for the enable/disable