From 5edfedb899c749128d8d7a70b98cd16e77dc1879 Mon Sep 17 00:00:00 2001 From: Barsukov Nikita Date: Tue, 20 Sep 2022 17:40:18 +0300 Subject: [PATCH] chore(demo): add auto-generated hint for examples with `` (#2738) --- .../autogenerated-code-hints.component.ts | 8 +++++++- .../autogenerated-code-hints.template.html | 9 +++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/projects/demo/src/modules/app/autogenerated-code-hints/autogenerated-code-hints.component.ts b/projects/demo/src/modules/app/autogenerated-code-hints/autogenerated-code-hints.component.ts index 08bba9f13139..20dadb9eb2ad 100644 --- a/projects/demo/src/modules/app/autogenerated-code-hints/autogenerated-code-hints.component.ts +++ b/projects/demo/src/modules/app/autogenerated-code-hints/autogenerated-code-hints.component.ts @@ -39,7 +39,8 @@ export class TuiAutoGeneratedCodeHintsComponent { return ( this.includesHintController(code) || this.includesTextfieldController(code) || - this.includesDropdownController(code) + this.includesDropdownController(code) || + this.includesDataListWrapper(code) ); } @@ -57,4 +58,9 @@ export class TuiAutoGeneratedCodeHintsComponent { includesDropdownController(code: string): boolean { return DROPDOWN_CONTROLLER_SELECTORS.some(selector => code.includes(selector)); } + + @tuiPure + includesDataListWrapper(code: string): boolean { + return code.includes(` to configure dropdown options. + +
  • + This example requires import of + TuiDataListWrapperModule + . +