Forum Discussion

ysapiyev's avatar
ysapiyev
Responsive Resident
8 years ago
Solved

Multiple selection in custom visual

Hi everyone.   I wanted to know, how to do multple selection using pressed CTRL button and mouse click, instead of mouse click. I set this.selectionManager.select(d.identity, true), and it select...
  • v-viig's avatar
    8 years ago

    Hello ysapiyev,

     

    You should use something like this (event documentation):

     

    // event is a mouse event
    
    const isCtrlKeyPressed = event.ctrlKey;
    
    this.selectionManager.select(d.identity, isCtrlKeyPressed);
    
    

    Ignat Vilesov,

    Software Engineer

     

    Microsoft Power BI Custom Visuals

    [email protected]