@next-level-integration/audit-table
v1.0.3
Published
Table for displaying audit logs
Downloads
5
Readme
@next-level-integration-private/audit-table
Install:
npm install @next-level-integration-private/audit-table
Importing:
import { NliAuditTableModule } from '@next-level-integration-private/audit-table';
Add this to the styles:
.nli-primary {
color: mat-color($primary-color) !important;
}
.nli-accent {
color: mat-color($accent-color) !important;
}
.nli-warn {
color: mat-color($warn-color) !important;
}
.nli-primary-bg {
background-color: mat-color($primary-color) !important;
}
.nli-accent-bg {
background-color: mat-color($accent-color) !important;
}
.nli-warn-bg {
background-color: mat-color($warn-color) !important;
}
.nli-primary-border {
border-color: mat-color($primary-color) !important;
border-top-color: mat-color($primary-color) !important;
border-bottom-color: mat-color($primary-color) !important;
border-left-color: mat-color($primary-color) !important;
border-right-color: mat-color($primary-color) !important;
}
.nli-accent-border {
border-color: mat-color($accent-color) !important;
border-top-color: mat-color($accent-color) !important;
border-bottom-color: mat-color($accent-color) !important;
border-left-color: mat-color($accent-color) !important;
border-right-color: mat-color($accent-color) !important;
}
.nli-warn-border {
border-color: mat-color($warn-color) !important;
border-top-color: mat-color($warn-color) !important;
border-bottom-color: mat-color($warn-color) !important;
border-left-color: mat-color($warn-color) !important;
border-right-color: mat-color($warn-color) !important;
}
Usage
HTML
<nli-audit-table *ngIf="dataObjectAuditLogArray" [auditData]="dataObjectAuditLogArray" [displayedColumns]="columnArray">
</nli-audit-table>
- If no displayedColumns are specified, it will default to: [ 'timestamp', 'userName', 'clientName', 'description' ]
- Possible columns: 'timestamp', 'userName', 'eventId', 'description', 'clientName', 'module'
Changelog:
- 1.0.0 Initial version
- 1.0.1 Changed default columns
- 1.0.2 Moved to private scope and repository
- 1.0.3 Error message on empty table and styling adjustments