AuditRendererService
service
Service for managing audit-entry renderers. Renderers are components that render the inner content of an audit entry in the timeline view of ObjectAuditComponent.
Register a renderer for an action to override the default rendering of all audit entries with that action, or for an action + subaction pair to override a specific variant. Lookup prefers the subaction-specific renderer over the action-only renderer; if neither is registered, DefaultAuditRendererComponent is used.
Methods
Section titled “Methods”getAuditRenderer
Section titled “getAuditRenderer”Resolve the renderer for an audit entry. Tries (action, subaction) first, falls back to (action), then to DefaultAuditRendererComponent.
getAuditRenderer(action: number, subaction?: number): Type<AbstractAuditRendererComponent>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| action | number | |
| subaction | number |
registerAuditRenderer
Section titled “registerAuditRenderer”Register a renderer for a specific audit action. Pass subaction to scope the renderer to a particular (action, subaction) pair.
registerAuditRenderer(cmp: Type<AbstractAuditRendererComponent>, action: number, subaction?: number): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| cmp | Type<AbstractAuditRendererComponent> | |
| action | number | |
| subaction | number |