Created
March 2, 2015 11:41
-
-
Save serkanserttop/8c98e0c0ece5af6c8824 to your computer and use it in GitHub Desktop.
basic example for SMF.UI.WebView usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*globals SMF, Pages*/ | |
(function(){ | |
Pages.pageWithButton = new SMF.UI.Page(); | |
Pages.pageWithWebView = new SMF.UI.Page(); | |
var btn = new SMF.UI.TextButton({ | |
text: 'Go To WebView', | |
onPressed: function(e){ | |
Pages.pageWithWebView.show(); | |
} | |
}); | |
Pages.pageWithButton.add(btn); | |
var webViewPage = new SMF.UI.WebView({ | |
top: "10%", | |
left: "10%", | |
height: "90%", | |
width: "90%", | |
URL: "http://developer.smartface.io" | |
}); | |
Pages.pageWithWebView.add(webViewPage); | |
Pages.pageWithButton.show(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment