Skip to content

Commit e22620e

Browse files
dkamburovmddragnev
andauthored
chore(toolbar): add ngTemplateContextGuard for the toolbar (#12085)
Co-authored-by: Martin Dragnev <[email protected]>
1 parent 2fe8c40 commit e22620e

File tree

1 file changed

+5
-0
lines changed
  • projects/igniteui-angular/src/lib/grids/toolbar

1 file changed

+5
-0
lines changed

projects/igniteui-angular/src/lib/grids/toolbar/common.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,9 @@ export interface IgxGridToolbarTemplateContext {
6666
@Directive({ selector: '[igxGridToolbar]'})
6767
export class IgxGridToolbarDirective {
6868
constructor(public template: TemplateRef<IgxGridToolbarTemplateContext>) {}
69+
70+
public static ngTemplateContextGuard(_dir: IgxGridToolbarDirective,
71+
ctx: unknown): ctx is IgxGridToolbarTemplateContext {
72+
return true
73+
};
6974
}

0 commit comments

Comments
 (0)