v-select-image

0.1.5 • Public • Published

Vue Select Image

Its is a Vue.js component for selecting images. Vue Select Image Demo

Installation

Firstly you can install with only npm for now

npm install --save v-select-image

After installation you have to import component wherever want you to use.

import VueSelectImage from 'v-select-image'

After that you have to register it as a component in your script

<script>
    components: { VueSelectImage }
</script>

Usage

You can use easily with use <v-select-image> tag. Example:

<v-select-image
	class="w-650"
	v-model="selectedItems"
	:items="items"
	colorSchema="##8B8B8B"
/>

Properties

You can add some parameters to customizing.

Property type required default
items Array true
colorSchema String false #8B8B8B
maxSelectable String/Integer false -1
uniqueKey String false id

Max Selection Error Handling

You can add @maxSelectionError prop to the <v-select-image> tag.

Example:

<v-select-image
	class="w-650"
	v-model="selectedItems"
	:items="items"
	maxSelectable="3"
	@maxSelectionError="yourErrorFunction()"
/>

Bugs and Improvements

If you can find a bug or design issue you can open an issue on GitHub or you can fix directly. Dont hesitate to contribute

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.5
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.5
    1

Package Sidebar

Install

npm i v-select-image

Weekly Downloads

1

Version

0.1.5

License

none

Unpacked Size

1.21 MB

Total Files

21

Last publish

Collaborators

  • cagataykula