Giter VIP home page Giter VIP logo

iamabs2001 / nativescript-chrome-tabs Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 1.11 MB

Nativescript Chrome Tabs Plugin for android & ios

Home Page: https://www.npmjs.com/package/nativescript-chrome-tabs

License: MIT License

Shell 18.14% TypeScript 70.46% JavaScript 11.40%
nativescript-chrome-tabs chrome-tabs custom-tabs custom-chrome-tabs webview nativescript nativescript-webview nativescript-custom-webview

nativescript-chrome-tabs's Introduction

Nativescript Chrome Tabs apple android

npm GitHub Build Status npm GitHub issues Status Twitter Follow

Chrome Tabs Plugin to open a custom chrome/safari tabs in android & ios.

Installation

tns plugin add nativescript-chrome-tabs

Demo

Demo 1 Demo 2
Demo 3 Demo 4

Usage

<Button text="click" (tap)="myCustomWeb();">

Javascript

var { initChromeTab, openChromeTab } = require('nativescript-chrome-tabs');

constructor() { 
    initChromeTab(); 
}

function myCustomWeb() {
    openChromeTab({
        url: 'http://google.com',
        toolbarColor: '#0361cc',
        toolbarControlsColor: '#303F9F'
    });
}

Typescript

import { initChromeTab, openChromeTab } from "nativescript-chrome-tabs";

constructor() { 
    initChromeTab(); 
}

myCustomWeb() {
    openChromeTab({
        url: 'http://google.com',
        toolbarColor: '#0361cc',
        toolbarControlsColor: '#303F9F'
    });
}

API (Properties)

Property Default Description
url required The URL to open
showTitle false Shows title bar in the webview
toolbarColor undefined Color of the toolbar
toolbarControlsColor undefined (only iOS) color of buttons on toolbar
isClosed undefined callback function that will be called when webview is closed

API (Methods)

Method Type Returns Description
initChromeTab(); constructor void To Initialize Chrome Tab
openChromeTab(url : String, toolbarColor : String, toolbarControlsColor : String); method void To Open a Chrome Tab

https://developer.chrome.com/docs/multidevice/android/customtabs/

nativescript-chrome-tabs's People

Stargazers

 avatar

Watchers

 avatar

Forkers

t1amat9409

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.