Skip to content

Commit

Permalink
Merge pull request #20 from oluwaseye/master
Browse files Browse the repository at this point in the history
Updated README with Vanilla JS Example
  • Loading branch information
bradmartin authored Sep 11, 2017
2 parents 3102130 + bc03bd1 commit 1ec7c50
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,27 @@ public whateverYouLike() {

```

#### Javascript

```javascript

var AdvancedWebView = require("nativescript-advanced-webview");

exports.openChromTabs = function(args){
//var gotoUrl = args.view.bindingContext.url;

var opts = {
url: args.view.bindingContext.url,
toolbarColor: '#ff4081',
toolbarControlsColor: '#333', // iOS only
showTitle: false // Android only
};
console.log(args.view.bindingContext.url);

AdvancedWebView.openAdvancedUrl(opts);

```
### API
- openAdvancedUrl(options: AdvancedWebViewOptions)
Expand Down

0 comments on commit 1ec7c50

Please sign in to comment.