Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

122
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!