Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

224
Visualizações
How to display a week range v-date-picker range?

I am using v-calendar as a date picker in my Vue project. My objective is to select complete week - 7 days fixed from sunday to saturday. I have been looking around in the documentation but unable to get my head around it.

This is what I have as an example https://codepen.io/achaphiv/pen/OJXjooB

<div id='app'>
  <v-date-picker v-model="value" :available-dates="availableDates" is-inline></v-date-picker>
  
  The current date is: {{ value || 'null' }}
</div>


new Vue({
  el: '#app',
  data() {
    const now = new Date()
    const later = new Date(now.getTime() + 5 * 60 * 1000)
    return {
      value: null,
      availableDates: [
        { start: now, end: later }
      ]
    }
  }
})
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

If I understood you correctly try like following snippet:

new Vue({
  el: '#app',
  data() {
    return {
      value: null,
      availableDates: { 
        start: new Date(), 
        end: new Date(new Date().setDate(new Date().getDate() + 7)) 
      }
    }
  }
})
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script>
<script src="https://unpkg.com/v-calendar@1.0"></script>
<div id='app'>
  <v-date-picker v-model="value" :available-dates="availableDates" is-inline></v-date-picker>
  
  The current date is: {{ value || 'null' }}
</div>

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda