@lassehaslev/vue-downloader

Download elements with vuejs

Stats

StarsIssuesVersionUpdatedCreatedSize
@lassehaslev/vue-downloader
1300.1.05 years ago5 years agoMinified + gzip package size for @lassehaslev/vue-downloader in KB

Readme

@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.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.