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: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

ActionItem invisible (QML)

am i right, that I can

 

  • enable true / false an ActionItem
  • place them onBar or InOverflow

 

but I cannot (from QML)

 

make an ActionItem invisible

or something like ActionBarPlacement.Hidden

 

-----------

 

so the only way is to add / remove from C++  ?

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Retired
Posts: 155
Registered: ‎07-16-2012
My Device: Dev Alpha
My Carrier: Bell

Re: ActionItem invisible (QML)

Hi ekke,

 

I`m affraid you're right at this moment, I would suggest you to log a feature request for this,  http://supportforums.blackberry.com/t5/Java-Development/Developer-Issue-Tracker/td-p/271768

 

Cheers,

Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: ActionItem invisible (QML)

Hi ekke,

Have you tried Page#deleteAction(), passing in the ID of the action you want deleted?
Garett
@garettBeuk
--
Goodbye everybody!
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: ActionItem invisible (QML)


gbeukeboom wrote:
Hi ekke,

Have you tried Page#deleteAction(), passing in the ID of the action you want deleted?

Hi Garett,

doesn't work .... and because thee's no addAction() it doesnt help for dynamic solutions

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: ActionItem invisible (QML)

My apologies ekke, I'm living in a world with 2 sets of APIs (ones that are available and ones that are coming) and I was mistaken. There should be Q_INVOKABLE methods to add/remove action items in the next SDK release, so you can handle these actions from within QML.

Garett
@garettBeuk
--
Goodbye everybody!
Highlighted
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: ActionItem invisible (QML)


gbeukeboom wrote:

My apologies ekke, I'm living in a world with 2 sets of APIs (ones that are available and ones that are coming) and I was mistaken. There should be Q_INVOKABLE methods to add/remove action items in the next SDK release, so you can handle these actions from within QML.


great news Smiley Happy

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner