projects/openvidu-components-angular/src/lib/directives/template/internals.directive.ts
The *ovParticipantPanelParticipantBadge directive allows you to inject custom badges or indicators in the participant panel. This enables you to add role indicators, status badges, or other visual elements.
Usage example:
Example :<ov-participants-panel>
<div *ovParticipantPanelItem="let participant">
<ov-participant-panel-item [participant]="participant">
<!-- Custom badge for local participant only -->
<ng-container *ovParticipantPanelParticipantBadge>
<span class="moderator-badge">
<mat-icon>admin_panel_settings</mat-icon>
Moderator
</span>
</ng-container>
</ov-participant-panel-item>
</div>
</ov-participants-panel>| Selector | [ovParticipantPanelParticipantBadge] |
Properties |
constructor(template: TemplateRef
|
|||||||||
|
Parameters :
|
| Public container |
Type : ViewContainerRef
|
| Public template |
Type : TemplateRef<any>
|