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

192
Visualizações
Grid Stack Widgets sorting Issue with Vue JS

We are using GridStack Widgets plugin in Vue JS for creating dynamic widgets and it's working fine.

However, on new widgets creation we are setting 'Y' values as widgets.length + 120. New widget added at the bottom of page with incremented in 'Y' value etc: (121, 122, 123) which is the correct case.

but on page load GridStack sort widgets on the basis of 'Y' value with descended order and all widgets get sorted like: 123, 122, 121 ... and high value of 'Y' came up on top.

I want to revers this sorting option, so last created widgets set on bottom of page as it was on creation time and widgets will be like 121, 122, 123

GridStack.init({
  column: 120, 
  cellHeight: 15,
  margin: 5,
}); 

using above options while in mounted phase.

I've added this key value oneColumnModeSort:'column-reverse' in option but it's not working.

GridStack.init({
  column: 120, 
  cellHeight: 15,
  margin: 5,
  oneColumnModeSort:'column-reverse',
}); 

Is there any way, i can change default sorting option in Grid Stack VueJS.

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