1.1.0 • Published 4 years ago

mbatar-vue-slider v1.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

Installing

npm -i mbatar-vue-slider

Usage

  • Just import Components from node_modules folder in main.js
import Slider from  'mbatar-vue-slider'
  • Register mbatar-vue-slider component with any name you want
Vue.component("Slider", Slider)
  • You can use it
<Slider  :options="sliderOptions"/>
  • Slider options
sliderOptions:  {
	slides: [
		{
			id:  123123,
			src:  "/src/assets/vue.jpg",
			description:  {
			header:  "What is Vue.js?",
			title:  "Vue (pronounced /vjuː/, like view) is a progressive 	framework for building user interfaces. Unlike other monolithic frameworks, Vue is designed from the ground up to be incrementally adoptable.",
			href:  "https://vuejs.org/"
			}
		},
		.
		.
		.
	],
interval:5000,
auto:true,
mode:'slide',
charLength:30
}

Required

  • description:{...}

Optionally

  • interval

Optionally, default = 5000ms

  • auto

Required, ture or false

  • mode

Optionally, default = slide

Options = fade , slide

  • charLength

Optionally, default = 20

  • Information The component covers the entire area. That's why it is recommended to use it this way. Note: It is assumed that the height and width ratios of the images are not constant
<template>
<div class="slider-container">
	<Slider :options="sliderOptions" />
</div>
</template>
<script>
//JS code...
</script>
<style>
.slider-container{
	width:50rem;
	height:25rem;
}
</style>
1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago