UI Features - Design



Orientation support is to allow vertical, horizontal, or both orientations. This is a two step process, first allow orientation support in the bar-descriptor.xml file and allow it in the code of the Page. Once orientations are supported, objects can be dynamically adjusted based off orientation using the OrientationHandler {}.

Typical "Orientation Support":

onCreationCompleted: {
        OrientationSupport.supportedDisplayOrientation = SupportedDisplayOrientation.All;
    attachedObjects: [
        OrientationHandler {
            onOrientationAboutToChange: {

Examples/Tutorials Using This Feature:

ListView to create a RSS Feed