Coder Social home page Coder Social logo

waihoh / vuetifyimageinput Goto Github PK

View Code? Open in Web Editor NEW

This project forked from seregpie/vuetifyimageinput

0.0 0.0 0.0 667 KB

Provides basic image editing tools.

Home Page: https://seregpie.github.io/VuetifyImageInput/

License: MIT License

JavaScript 100.00%

vuetifyimageinput's Introduction

VuetifyImageInput

Provides basic image editing tools.

demo

Try it out!

dependencies

setup

npm

npm i vuetify-image-input

import VuetifyImageInput from 'vuetify-image-input';

or

Use the treeshaking system.

import VuetifyImageInput from 'vuetify-image-input/a-la-carte';

browser

<link
  href="https://unpkg.com/vuetify@2/dist/vuetify.min.css"
  rel="stylesheet"
/>
<script src="https://unpkg.com/vue@2"></script>
<script src="https://unpkg.com/vuetify@2/dist/vuetify.min.js"></script>
<script src="https://unpkg.com/vuetify-image-input"></script>

The component is globally available as VuetifyImageInput. If Vue is detected, the component is registered automatically.

usage

Register the component globally.

import Vue from 'vue';
import VImageInput from 'vuetify-image-input';

Vue.component(VImageInput.name, VImageInput);

or

Register the component locally.

import VImageInput from 'vuetify-image-input';

export default {
  components: {
    VImageInput,
  },
  // ...
};

Use the component inside a template.

<v-image-input
  v-model="image"
  :image-quality="0.85"
  clearable
  image-format="jpeg"
  @file-info="onFileInfo"
/>

properties

name type default description
clearable Boolean false
clearIcon String '$clear'
clearIconStyle Object
debounce Number 0
disabled Boolean false
errorIcon String '$error'
errorIconStyle Object
flipHorizontallyIcon String 'mdi-flip-horizontal'
flipHorizontallyIconStyle Object
flipVerticallyIcon String 'mdi-flip-vertical'
flipVerticallyIconStyle Object
fullHeight Boolean false
fullWidth Boolean false
hideActions Boolean false
imageBackgroundColor String
imageFormat String 'png' Possible values are 'png', 'jpeg' and 'webp'.
imageHeight Number 256
imageMaxScaling Number 1
imageMinScaling String 'cover' Possible values are 'cover' and 'contain'.
imageQuality
imageWidth Number 256
name String
overlayBackgroundColor String 'rgba(0,0,0,0.5)'
overlayBorderColor String '#fff'
overlayBorderWidth String '4px'
overlayPadding String '50px'
readonly Boolean false
rotateClockwiseIcon String 'mdi-rotate-right'
rotateClockwiseIconStyle Object
rotateCounterClockwiseIcon String 'mdi-rotate-left'
rotateCounterClockwiseIconStyle Object
successIcon String '$success'
successIconStyle Object
uploadIcon String 'mdi-upload'
uploadIconStyle Object
value String

events

name
file-info
input

vuetifyimageinput's People

Contributors

seregpie avatar fostertoster avatar nstringham avatar saikksub avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.