06-03-2012 09:29 AM
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.
Thanks
06-04-2012 02:32 AM
Maybe a main topToBottom StackLayout with 4,5 LeftToRight StackLayout inside ?
06-15-2012 03:17 PM
Hello,
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.
example:
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
Good luck!
Cheers
Selom