Skip to content

WilliamDASILVA/vue-browserupdate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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...
});

About

VueJS wrapper for "browserupdate" package

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy