Getting Started
Usages
Columns
API References
ngx-panemu-table / Interface

RowRenderer

Generic types:T

Interface for custom row renderer. The template root component should be a tr element.

<ng-template #rowRenderer 
  let-row="row" 
  let-visibleColumns="visibleColumns" 
  let-rowOptions="rowOptions"
  let-selectedRow="selectedRow"
  let-selectRow="selectRow"
>
  <tr>
    <td *ngFor="let column of visibleColumns">
      {{row[column.field]}}
    </td>
  </tr>
</ng-template>

See Also

Properties

NameTypeDescription
row
T

Row to render

rowOptions
RowOptions<T>

Provides reference to rowClass and rowStyle factories.

selectedRow
Signal<T | null>

A signal to check if current row is selected.

selectRow
(row: T) => void

A function to select current row

visibleColumns
PropertyColumn<T>[]

List of visible column. It is derived from ColumnDefinition.body.