Socket
Book a DemoInstallSign in
Socket

lemaf-vue-range-picker

Package Overview
Dependencies
Maintainers
7
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lemaf-vue-range-picker

Componente Vue para seleção de intervalos de datas.

latest
npmnpm
Version
1.0.7
Version published
Maintainers
7
Created
Source

Lemaf Vue Range Picker

Componente Vue para seleção de intervalos de datas.

Como usar

  • Importar o componente import LemafRangePicker from 'lemaf-vue-range-picker'

  • Importar o css import 'lemaf-vue-range-picker/dist/lemaf-vue-range-picker.css'

  • Incluir o componente: <lemaf-range-picker @selected="onRangeSelected" v-bind="config"></lemaf-range-picker>

Evento

O evento select retorna um objeto com os atributos inicio e fim, cada um deles com uma instância Date equivalente ao intervalo selecionado. Exemplo:

range{
	inicio: Wed Jan 01 2014 00:00:00 GMT-0200 (-02),
	fim: Mon Dec 31 2018 00:00:00 GMT-0200 (-02)
}

Configurações do componente

É possível modificar alguns parâmetros do componente, como cores e ano inicial dos intervalos através do parâmetro config. Exemplo:

config: {
	anoInicial: 1992,
	styles: {
		baseColor: '#FFA726',
		overColor: 'white'
	}
}

FAQs

Package last updated on 12 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.