File

projects/openvidu-components-angular/src/lib/directives/template/internals.directive.ts

Description

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>

Metadata

Index

Properties

Constructor

constructor(template: TemplateRef, container: ViewContainerRef)
Parameters :
Name Type Optional
template TemplateRef<any> No
container ViewContainerRef No

Properties

Public container
Type : ViewContainerRef
Public template
Type : TemplateRef<any>

results matching ""

    No results matching ""