Skip to content

Instantly share code, notes, and snippets.

@serkanserttop
Created March 2, 2015 11:41
Show Gist options
  • Save serkanserttop/8c98e0c0ece5af6c8824 to your computer and use it in GitHub Desktop.
Save serkanserttop/8c98e0c0ece5af6c8824 to your computer and use it in GitHub Desktop.
basic example for SMF.UI.WebView usage
/*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