0.2.0 • Published 6 years ago

@jeremyhamm/vue-slider v0.2.0

Weekly downloads
140
License
MIT
Repository
-
Last release
6 years ago

Vue Slider

A customizable horizontal slide menu for VueJs 2+

Demo Image


Installation

NPM
  npm i @jeremyhamm/vue-slider

Browser

<script src="https://unpkg.com/@jeremyhamm/vue-slider"></script>

Useage

Mount with global

import Vue from 'vue'
import Slider from '@jeremyhamm/vue-slider'

Vue.use(Slider)

Mount with component

import Slider from '@jeremyhamm/vue-slider'

export default {
  components: {
    'slider': Slider
  }
}

Use in component

 <slider :width="300" format="push" direction="left" :opacity="0.15" :links="[{'id': 1, 'text': 'Link 1', 'url': 'https://github.com'}, {'id': 2, 'text': 'Link 2', 'url': 'https://github.com'}]"></slider>

Properties

NameTypeDefaultOptions
widthNumber300Menu Width (px)
formatStringoverlaypush, full, overlay
directionStringleftleft, right
opacityNumber00.00 - 1.00 Representing css opacity
linksArraynull[{'id': 1, 'text': 'Link 1', 'url': 'https://github.com'}, {'id': 2, 'text': 'Link 2', 'url': 'https://github.com'}]

Styles

All menu styles can be updated in /assets/sass/variables.scss

0.2.0

6 years ago

0.1.16

6 years ago

0.1.15

6 years ago

0.1.14

6 years ago

0.1.13

6 years ago

0.1.12

6 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago