- {query.columns.map(
- (column, columnIndex) =>
- // If column is hidden, don't render
- !query.isHidden(column) && (
-
- {query.isPK(column) ? (
- // If there is custom JSX for the PK single item button, render it
- (query.config.customSingleItemButton &&
- query.config.customSingleItemButton(
- row[column]
- )) || (
-
- {query.config.columns[
- column
- ].hasOwnProperty("icon") ? (
-
- {
- query.config.columns[column]
- .icon.name
- }
-
- ) : (
- row[column]
- )}
-
- )
- ) : query.config.columns[column]?.link ? (
- query.getFormattedValue(
- column,
- buildLinkData(row, column)
- )
- ) : isAlphanumeric(column) ? (
- <>
- {query.getFormattedValue(
- column,
- row[column]
- )}
- >
- ) : (
- // if column is not alphanumeric
- // it is formatted like a nested query
- query.getFormattedValue(
- column,
- getSummary(row, column.trim())
- )
- )}
-
- )
- )}
-
- );
- })
- )}
-
- |