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

293
Visualizações
Object keys order different to object definition once used in Tabulator autocomplete

Definition of my variable is

var vykazyMesice =  { 
  '01': "leden - 01",
  '02': "únor - 02",
  '03': "březen - 03",
  '04': "duben - 04",
  '05': "květen - 05",
  '06': "červen - 06",
  '07': "červenec - 07",
  '08': "srpen - 08",
  '09': "září - 09",
  '10': "říjen - 10",
  '11': "lispopad - 11",
  '12': "prosinec - 12",
  } 

but when used in Tabulator autocomplete the order is different.

https://i.imgur.com/4UzJYoL.pn

working jsFiddle

If you check console.log() output in a browser console then you can see the two orders. Not sure how to name them but they are different. The first one you can see in the Tabulator. The second one is the one I want to see in my application.

enter image description here

Someone would know how to use the order I want? The order in variable definition.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Regarding the comments there might be more solutions but if I read manual carefully I would have known this

You can also pass in an array of objects, that allows you to define option in order. -- from Tabulator doc working jsFiddle

  var vykazyMesice =  [
        { 
            label:"leden - 01",
            value:"01",
        },
        {
            label:"únor - 02",
            value:"02",
        },
        {
            label:"březen - 03",
            value:"03",
        },
        {
            label:"duben - 04",
            value:"04",
        },
        {
            label:"květen - 05",
            value:"05",
        },
        {
            label:"červen - 06",
            value:"06",
        },
        {
            label:"červenec - 07",
            value:"07",
        },
        {
            label:"srpen - 08",
            value:"08",
        },
        {
            label:"září - 09",
            value:"09",
        },
        {
            label:"říjen - 10",
            value:"10",
        },
        {
            label:"listopad - 11",
            value:"11",
        },
        {
            label:"prosinec - 12",
            value:"12",
        },
    ]
  
  
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