From d106af0a68085661742d61133978982670659c65 Mon Sep 17 00:00:00 2001 From: ttonev Date: Thu, 25 Jul 2024 11:46:27 +0300 Subject: [PATCH 1/2] docs(samples): fixed drag & drop errow in kanban sample --- .../drag-drop/kanban-sample/kanban-sample.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/interactions/drag-drop/kanban-sample/kanban-sample.component.ts b/src/app/interactions/drag-drop/kanban-sample/kanban-sample.component.ts index 1f3c441c7c..6cf95fd0bb 100644 --- a/src/app/interactions/drag-drop/kanban-sample/kanban-sample.component.ts +++ b/src/app/interactions/drag-drop/kanban-sample/kanban-sample.component.ts @@ -1,6 +1,6 @@ /* eslint-disable no-shadow */ /* eslint-disable @typescript-eslint/naming-convention */ -import { ChangeDetectorRef, Component, ElementRef, OnInit, Renderer2, ViewChild } from '@angular/core'; +import { ChangeDetectorRef, Component, ElementRef, OnInit, Renderer2, viewChild, ViewChild } from '@angular/core'; import { IDropBaseEventArgs, IDropDroppedEventArgs } from 'igniteui-angular'; enum state { @@ -20,6 +20,9 @@ interface IListItem { styleUrls: ['./kanban-sample.component.scss'] }) export class KanbanSampleComponent implements OnInit { + @ViewChild('toDo', { read: ElementRef }) public toDo: ElementRef; + @ViewChild('inProgress', { read: ElementRef }) public inProgress: ElementRef; + @ViewChild('done', { read: ElementRef }) public done: ElementRef; public toDoList: IListItem[]; public inProgressList: IListItem[]; public doneList: IListItem[]; From 168b171ce3713333272194b6c9225b7aaf14fbad Mon Sep 17 00:00:00 2001 From: ttonev Date: Tue, 3 Sep 2024 10:10:09 +0300 Subject: [PATCH 2/2] chore(kanban): removed unused import in sample --- .../drag-drop/kanban-sample/kanban-sample.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/interactions/drag-drop/kanban-sample/kanban-sample.component.ts b/src/app/interactions/drag-drop/kanban-sample/kanban-sample.component.ts index 6cf95fd0bb..39936abdf6 100644 --- a/src/app/interactions/drag-drop/kanban-sample/kanban-sample.component.ts +++ b/src/app/interactions/drag-drop/kanban-sample/kanban-sample.component.ts @@ -1,6 +1,6 @@ /* eslint-disable no-shadow */ /* eslint-disable @typescript-eslint/naming-convention */ -import { ChangeDetectorRef, Component, ElementRef, OnInit, Renderer2, viewChild, ViewChild } from '@angular/core'; +import { ChangeDetectorRef, Component, ElementRef, OnInit, Renderer2, ViewChild } from '@angular/core'; import { IDropBaseEventArgs, IDropDroppedEventArgs } from 'igniteui-angular'; enum state {