Tuesday, December 25, 2012

BlackBerry10 showing HTML



just this snippet to yours main.qml and run the emulator!!

// Default empty project template
import bb.cascades 1.0

// creates one page with a label

Page {
    Container {
        layout: DockLayout {
        }
        WebView {
            id: webView
            html: "<html>
            <body>
           
            <h1>Jitesh Upadhyay</h1>
           
            <p>please visit me at http://www.blogger.com/profile/16670167524123575126</p>
           
            </body>
            </html>
            "
        }
    }
}

No comments:

Post a Comment