JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums Kanban how to detect whether a task has been selected in a Kanban? Reply To: how to detect whether a task has been selected in a Kanban?

#101960
yavordashew
Member

Hi davout,
The SmartKanban doesn’t have events on selection of tasks, but I have prepared a code example which enables you to have this functionality:

        this.kanban.addEventListener ('click', (event: MouseEvent): void => {
            if (event.shiftKey) {
                const selectedTasks: any=  document.querySelectorAll('.smart-kanban-task[selected]');
                console.log(selectedTasks);
            }
        })

Let me know if that works for you!
Please, do not hesitate to contact us if you have any additional questions.
Best regards,
Yavor Dashev
Smart UI Team
https://www.htmlelements.com/