Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

294
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda