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

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

Posts: 34
Registered: ‎05-20-2012
My Device: Playbook
My Carrier: Vodafone

Searching for Custom Controller - Calendar

Hi all.

Calendar - is main part of my app. In web version of app  for calendar i use tables.


Looking for ideas how to make a calendar in Cascades.



Posts: 276
Registered: ‎02-05-2010
My Device: Blackberry Z10
My Carrier: Bouygues Telecom

Re: Searching for Custom Controller - Calendar

Maybe a main topToBottom StackLayout with 4,5 LeftToRight StackLayout inside ?

Twitter : @LaurentKP
My apps
Posts: 60
Registered: ‎05-10-2012
My Device: Blackberry 10 Alpha
My Carrier: none

Re: Searching for Custom Controller - Calendar



I am not aware of any custom controls available for the Cascades NDK at this time. As Laurent already mentioned, the standard way of creating one would be to use a grid, which can be accomplished by creating a container with stack layout with a flow direction of TopToButtom, and then in each row, creating another container with a stack layout of buttons with a flow direction of LeftToRight.




import bb.cascades 1.0

Page {
    content: Container {
        layout : StackLayout {
            layoutDirection : LayoutDirection.TopToBottom
        Container {
            layout : StackLayout {
                layoutDirection : LayoutDirection.LeftToRight
            Button { text : "1" }
            Button { text : "2" }
            Button { text : "3" }
        Container {
            layout : StackLayout {
                layoutDirection : LayoutDirection.LeftToRight
            Button { text : "4" }
            Button { text : "5" }
            Button { text : "6" }


Additional tweaking required to make it prettier Smiley Happy Good luck!