File

src/lib/table-row-actions/table-row-action-executing.directive.ts

Metadata

Index

Properties
Methods

Constructor

constructor(templateRef: TemplateRef, vcr: ViewContainerRef)
Parameters :
Name Type Optional
templateRef TemplateRef<void> No
vcr ViewContainerRef No

Methods

Public hide
hide()
Returns : void
Public show
show()
Returns : void

Properties

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();
  }
}

results matching ""

    No results matching ""