@lassehaslev/vue-downloader

0.1.0 • Public • Published

@lassehaslev/vue-downloader

Installation

Run npm install @lassehaslev/vue-downloader --save in your project folder

Usage

This package uses vue-resource, so just make sure you include it.

Javscript

// Import vue
import Vue from 'vue';
// Make sure you add vue Resource
import VueResource from 'vue-resource';
Vue.use( VueResource );

import ImagePicker from '@lassehaslev/vue-downloader';
Vue.use( 'downloader', ImagePicker );

Html

<downloader url="https://jsonplaceholder.typicode.com/photos?limit=10"
:items-adaptor="imagesAdaptor"
:item-adaptor="imageAdaptor"
:selected="selectedImage"
@confirm="selectImage"
ref="imagePicker"></downloader>

Development

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

For detailed explanation on how things work, consult the docs for vue-loader.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.03latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.03

Package Sidebar

Install

npm i @lassehaslev/vue-downloader

Weekly Downloads

3

Version

0.1.0

License

none

Last publish

Collaborators

  • lassehaslev