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

281
Visualizações
How to make cell.navigateLeft() work in Tabulator?

Because of another questions of mine (How to go to previous cell after pressing tab key?) I was learning how to use cell navigation

cell.navigateLeft(); //move focus left to next editable cell.

when I click "click me" cell I am expecting cursor to appear in Cell 3 becuse it is an input type of cell.

enter code here

But whatever way I try it does nothing

    table.on("cellClick", function(e, cell){
    //e - the click event object
    //cell - cell component
    
    console.log("cell ",  cell.getField())
                    console.log(table.navigateLeft())
                    table.navigateLeft()
                    
                    
                    console.log(cell.navigateLeft())
                    cell.navigateLeft()
    console.log("cell ",  cell.getField())

                    
          //  console.log(cell.navigatePrev())
            //console.log(cell.navigateRight())
    
    });
    

Could someone explain how to use cell navigation?

Working jsFiddle.

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

0

Cell navigation cannot be triggered on click, navigation lets you move the focus of the currently edited cell to another cell, if a cell isnt in focus (as would happen on a cellClick event) then it wont do anything. The navigation functions are primarily used to handle keyboard navigation round the table.

In your example you are also handling every cells click, not just the click on the "click me" column.

If you want to trigger the edit on a particular cell then you should call the edit function on that cells component. So for example in your example if we add a cellClick callback on the column definition for the click me column:

{title: "Click me", field: "c4", cellClick:function(e, cell){
    cell.getRows().getCell("c3").edit();
}}            

Though from a usability point of view, the user can just click in the cell they want to edit so none of this really feels nessisary

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