Skip to content

Commit

Permalink
Updated README with Vanilla JS Example
Browse files Browse the repository at this point in the history
  • Loading branch information
oluwaseye committed Sep 11, 2017
1 parent 3102130 commit bc03bd1
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 bc03bd1

Please sign in to comment.