File

src/lib/expand-row/expand-row-container/expand-row-content.directive.ts

Metadata

Index

Properties
Methods

Constructor

constructor(template: TemplateRef<ExpandCellContentDirectiveContext<Data>>)
Parameters :
Name Type Optional
template TemplateRef<ExpandCellContentDirectiveContext<Data>> No

Methods

Static ngTemplateContextGuard
ngTemplateContextGuard(dir: ExpandRowContentDirective<Data>, ctx: any)
Type parameters :
  • Data
Parameters :
Name Type Optional
dir ExpandRowContentDirective<Data> No
ctx any No

Properties

Public Readonly template
Type : TemplateRef<ExpandCellContentDirectiveContext<Data>>
Decorators :
@Inject(TemplateRef)
import {
  Directive,
  Inject,
  TemplateRef,
} from '@angular/core';

export interface ExpandCellContentDirectiveContext<Data extends Record<string, any>> {
  $implicit: Data;
}

@Directive({
  selector: '[rxapExpandRowContent]',
  standalone: true,
})
export class ExpandRowContentDirective<Data extends Record<string, any>> {


  static ngTemplateContextGuard<Data extends Record<string, any>>(dir: ExpandRowContentDirective<Data>, ctx: any):
    ctx is ExpandCellContentDirectiveContext<Data> {
    return true;
  }

  constructor(
    @Inject(TemplateRef)
    public readonly template: TemplateRef<ExpandCellContentDirectiveContext<Data>>,
  ) {
  }

}

results matching ""

    No results matching ""