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
Alem117
Posts: 39
Registered: ‎11-22-2013
My Device: Z10
My Carrier: Mobily
Accepted Solution

About content: of page

hey guys :smileyhappy:

I'm starting developing for blackberry, and I'm reading the list tutorial and i found a content: before the container look at the cod below.

Page{

       content: Container{

 

    }

}

 

what does content: means? and is it okay if i just skip it and do like this

Page{

       Container{

 

    }

}

 

because this is the first time i see it, and i don't know what it does.. can you please clearify it's use and fanctionality and is it okay to skip it?

thanx a lot guys :smileyhappy:

Please use plain text.
Developer
kunal_one
Posts: 145
Registered: ‎12-23-2012
My Device: BB10 Dev Alpha
My Carrier: wifi

Re: About content: of page

Page documentation says

https://developer.blackberry.com/native/reference/cascades/bb__cascades__Page.html#property-content

 

both following does mean and does same thing.

 

Page {
    content: Container {
        Button {}
        Button {}
    }
}
 
Page {
    Container {
        Button {}
        Button {}
    }
}
Please use plain text.
Developer
Alem117
Posts: 39
Registered: ‎11-22-2013
My Device: Z10
My Carrier: Mobily

Re: About content: of page

Thanx for clearing things up :smileyvery-happy:

Please use plain text.