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
Philipk
Posts: 676
Registered: ‎05-06-2012
My Device: Dev Alpha & PlayBook
My Carrier: wifi
Accepted Solution

Something like UnreadContentCount but for an Action?

Use case is an action that says like and shows how many other users have liked a given entry.

 

I was hoping I could use UnreadConentCount but it turns out that's only availible for tabs and not actions.

 

http://developer.blackberry.com/native/reference/cascades/bb__cascades__tab.html#property-unreadcont...

_________________________________________________________
co-founder of Diaree | BB Dev for PictureThis
Please use plain text.
Retired
PBernhardt
Posts: 749
Registered: ‎12-16-2008
My Device: BlackBerry Z30
My Carrier: Bell

Re: Something like UnreadContentCount but for an Action?

Not really sure what you are asking for here. You could always change your action items.

Paul Bernhardt
Application Development Consultant
BlackBerry
@PBernhardt

Did this answer your question? Please accept this post as the solution.
Found a bug? Report it to the Developer Issue Tracker
Please use plain text.
Developer
Philipk
Posts: 676
Registered: ‎05-06-2012
My Device: Dev Alpha & PlayBook
My Carrier: wifi

Re: Something like UnreadContentCount but for an Action?

Currently I'm changing the label on the action to show the like count.

 

action.title = "like("+likeCount+")"

This solution is ok for the Z10 but on keyboard devices you can't actually see an actions title without holding down on the action.

 

So instead I'd like to overlay the action icon with a count so Q10 users can quickly see how many times something has been liked.

_________________________________________________________
co-founder of Diaree | BB Dev for PictureThis
Please use plain text.
Retired
PBernhardt
Posts: 749
Registered: ‎12-16-2008
My Device: BlackBerry Z30
My Carrier: Bell

Re: Something like UnreadContentCount but for an Action?

You could change the icon. Either to a small number of pre-defined numbers (1-10, 10+, 100+, etc), or attempt to composite them on the fly.

 

You can also submit a feature request, though that certainly won't solve your problem short term: DIT

Paul Bernhardt
Application Development Consultant
BlackBerry
@PBernhardt

Did this answer your question? Please accept this post as the solution.
Found a bug? Report it to the Developer Issue Tracker
Please use plain text.
Developer
Philipk
Posts: 676
Registered: ‎05-06-2012
My Device: Dev Alpha & PlayBook
My Carrier: wifi

Re: Something like UnreadContentCount but for an Action?

Good idea. Do you think doing something like that would go against the Built for BlackBerry guidelines?
_________________________________________________________
co-founder of Diaree | BB Dev for PictureThis
Please use plain text.
Developer
BBSJdev
Posts: 6,094
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Something like UnreadContentCount but for an Action?

There's nothing specificallly against this in the guidelines.


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.