A dynamic grid component specifically designed for rendering audio-only participants with customizable
layout and styling. Supports full template customization for complete control over participant presentation.
Description
AudioGrid provides three levels of customization to display audio-only participants:
Basic Usage: Use the default vertical stacked layout for audio participants
Style Customization: Apply custom styles via containerStyle to modify grid appearance
Full Template Override: Provide a custom ng-template via customTemplate for complete control
Key Features:
Dynamic rendering of audio-only participant components
Efficient injector caching for performance optimization
Automatic cache clearing on component changes to prevent memory leaks
A callback method that is invoked immediately after the
default change detector has checked data-bound properties
if at least one has changed, and before the view and content
children are checked.
Component
AudioGrid
A dynamic grid component specifically designed for rendering audio-only participants with customizable layout and styling. Supports full template customization for complete control over participant presentation.
Description
AudioGrid provides three levels of customization to display audio-only participants:
containerStyle
to modify grid appearanceng-template
viacustomTemplate
for complete controlKey Features:
Selector
app-audio-grid
Standalone
true
Imports
CommonModule
Example
Basic Usage:
Example
Style Customization:
Example
Custom Template Override:
Input
componentsToRender - Array of components with optional inputs to render in the grid
Input
containerStyle - Custom CSS styles for the grid container
Input
customTemplate - Custom ng-template for complete grid layout override
Method
ngOnChanges - Clears the injector cache on changes to componentsToRender
Method
createInjector - Creates and caches an injector with specific inputs for each component
Method
clearInjectorCache - Clears the cache to avoid memory leaks and ensure updated injectors