@sum.cumo/vue-browserupdate

Vue wrapper for 'browser-update' package
10,841
Install
npm install @sum.cumo/vue-browserupdate
Latest Version:3.0.1
License:MIT
Last Updated:Aug 28, 2020
Links: npm
Maintainer: mrwook

Vue-BrowserUpdate

VueJS wrapper for "browser update" package. Used to expose show, click and close events mainly. Forked from: https://github.com/WilliamDASILVA/vue-browserupdate

Table of Contents

Requirements

  • npm
  • VueJS
  • Node

Install

$ npm install --save @sum.cumo/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 '@sum.cumo/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...
});

Related Packages

vue-browserupdate

Vue wrapper for 'browser-update' package

35,530
vue-cli-plugin-browser-extension

Browser extension development plugin for vue-cli 3.0

22,385 430
@samrum/create-vite-plugin-web-extension

An easy way to start a Vite Web Extension project using @samrum/vite-plugin-web-...

1,306 44
@ugurkellecioglu/create-vite-plugin-web-extension

An easy way to start a Vite Web Extension project using @ugurkellecioglu/vite-pl...

1,100 0
@kimap/indoor-positioning-sdk-vue2

Vue2自包含室内定位SDK - 完全兼容Webpack3+Babel6 | Vue2 Self-Contained Indoor Pos...

25,744

Version History

Version Released License
3.0.1 MIT
3.0.0 MIT
2.0.0 MIT
1.2.1 MIT