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

130
Visualizações
tabulator rowFormatter find all columns via Title ending with pattern
  • Tabulator 5.1.0
  • VisualStudio 2022 Community

The data is dynamic for column names and data after the first 3 columns So columns 1, 2, & 3 would be like "Switch", "Node", "Total" All other columns are dynamically added via dynamically creating the column definitions. There may be from 1 to 500 more columns

In the rowFormatter function, I can get the row data and the row DOM element

        var cellTable = row.getCell("Switch");
        if (cellTable.getValue() == "showBase") {
            var rowData = row.getData();
            var rowDOMElement = row.getElement();
            var columnList = [code to get columns like *_T]
            for(var c in columnList ) {
               * find non _T column (nonTc)
               * make c hidden
               * make nonTc visible
            }
        }

I need to find all row DOM element columns ending in a pattern like "_T"

  • any column with that suffix will have a matching column without the suffix.

ie A row with a column named ABCD_EF_T will also contain the column ABCD_EF. By default any ABCD_EF column is hidden, and any ABCD_EF_T column is visible.

The goal in the code above, is to make any such ABCD_EF column visible, and any ABCD_EF_T hidden

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