src/lib/table-row-actions/table-row-action-executing.directive.ts
| Selector | [rxapTableRowActionExecuting] |
| Standalone | true |
Properties |
|
Methods |
constructor(templateRef: TemplateRef
|
|||||||||
|
Parameters :
|
| Public hide |
hide()
|
|
Returns :
void
|
| Public show |
show()
|
|
Returns :
void
|
| Public Readonly templateRef |
Type : TemplateRef<void>
|
import {
Directive,
TemplateRef,
ViewContainerRef,
} from '@angular/core';
@Directive({
selector: '[rxapTableRowActionExecuting]',
standalone: true,
})
export class TableRowActionExecutingDirective {
constructor(
public readonly templateRef: TemplateRef<void>,
private readonly vcr: ViewContainerRef,
) {
}
public show(): void {
this.vcr.createEmbeddedView(this.templateRef);
}
public hide(): void {
this.vcr.clear();
}
}