Giter VIP home page Giter VIP logo

vue-browserupdate's Introduction

Vue-BrowserUpdate

VueJS wrapper for "browser update" package. Used to expose show, click and close events mainly.

Table of Contents

Requirements

  • npm
  • VueJS
  • Node

Install

$ npm install --save vue-browserupdate

Getting Started

The Vue plugin must be initialized by your vue App. You should import it in your main .js file

import VueBrowserUpdate from 'vue-browserupdate';

Then you just use the plugin by calling the Vue.use method.

Vue.use(VueBrowserUpdate);

Usage

You still can pass options to browserupdate when calling the Vue.use method.

Vue.use(VueBrowserUpdate, {
	options: {
		// Your browser update options
		container: document.body,
	},
});

You can view the full options here: http://browser-update.org/customize.html

Pass a test key to enable the testing mode.

Vue.use(VueBrowserUpdate, {
	options: {
		// Your browser update options
	},
	test: true,
});

The plugin adds to the Vue object the object 'browserUpdate' that includes 3 functions. The onshow, onclick and onclose requires you to pass a function.

Vue.browserUpdate.onshow(() => {
	// The browser update modal is visible...
});

vue-browserupdate's People

Contributors

demsking avatar williamdasilva avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

vue-browserupdate's Issues

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.