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

267
Visualizações
Vue functional calendar updating calendar configs dynamically is not working

I have used vue-functional-calendar Vue Functional Calendar in my VueJS app in the following way.

<FunctionalCalendar
      v-model="calendarData"
      v-on:dayClicked="date_selected"
      v-on:changedMonth="fetch_disabled_dates_by_month"
      :is-date-range="true"
      :is-date-picker="true"
      :configs="calendarConfigs">
 </FunctionalCalendar>

And the calendarData and configs are as follows:

export default {
    name: "ReservationForm",
    components: {
        FunctionalCalendar,
    },
    data() {
        return {
             calendarData: {},
                 calendarConfigs: {
                      sundayStart: false,
                      dateFormat: "dd/mm/yyyy",
                      isDatePicker: true,
                      isDateRange: true,
                      disabledDates: [] //it will be updated dynamically from API response
                 },
                 current_month: 1 //dynamic
            };
        },
 .......................

Now I'm trying to update the value of disabledDates based on back end API request response. this.calendarConfigs.disabledDates = response.data.disabledDates; here response is coming from server. Though the response.data.disbledDates properly formatted array but here but the value is not updating on the calendar!

For example in the mounted method I tried to fetch disabled dates through API, though API is returning correct data but it's not updating on the calendar.

    axios.defaults.headers.common['Content-Type'] = 'application/json';
        axios.post("/api/get-disabled-dates", {
            month: this.current_month,
        })
        .then((response) => {
            if(response.data.result == 'success'){
                this.calendarConfigs.disabledDates = response.data.disabledDates;
//the above line should update the disabled dates at calendar but it's not. Even if I hard code the value here it's not working
            }
        });
about 4 years ago · Juan Pablo Isaza
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