Skip to content
Alex edited this page Apr 5, 2019 · 5 revisions

Manifest (optional)

{
	"size": 1, // Card width size
	"theme": { // Also remove toolbar background
		"title": "#000000",
		"actions": "auto" // Auto alternates between black and white color
	},
	"allowMultiple": false, // Allow the card to be added multiple times
	"settings": {}, // Default settings
	"cacheValidity": 60, // Cache Validity in seconds
	"origins": [], // Origins Authorization URLs
	"browsers": [] // Compatible browsers list
}

Event

// Card is loaded and cache is cleared if not empty
this.$emit('init');
// Card is loaded and data will be saved in cache
this.$emit('init', true);
// Card is loaded and `foo` value will be saved in cache
this.$emit('init', ['foo']);
// Card is loaded and data will not be saved in cache
this.$emit('init', false);
// Card has got an error while loading and show warning with error
this.$emit('init', err)); `err` is an Error object
Clone this wiki locally