Forum Discussion
Add shift-click to Custom Slicer
- 8 years ago
Hi Doug,
Posting the email reply here for other users.
The code looks good. Combination of Alt + Click (Shift + Click in your case) selects the range of items of Chiclet Slicer.
Could you please clarify how you tested the visual? Did you use pbiviz package or pbiviz start?
If you used pbiviz package you must also change the GUID to bypass our CDN.
If you experienced the issue with pbiviz start we would ask you to share more steps (screenshots or video) to reproduce the issue from our end since the Alt key works well on our end.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Looks like such functionality is already covered by Alt + Click (code).
Can you confirm that Alt + Click works in thew same way that you described for Shift + Click?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Hi, v-viig--
No, Alt+Click works just the same as ctrl+click. For fun, I tried compiling a version where I replaced the altKey reference to shiftKey, and it still does not select the range. It's individual chiclets, select or deselect. In fact now, the focus doesn't shift to the next chiclet selected. Rather, any chiclet selected remains selected until it is deselected.
My code is here. I've highlighted the spot in question, as you did, but the entire file is the one I'm using to compile.
I really appreciate your help so far, and I hope you can help me close this one out soon.
Best,
Doug
- v-viig8 years agoCommunity Champion
Hi Doug,
Posting the email reply here for other users.
The code looks good. Combination of Alt + Click (Shift + Click in your case) selects the range of items of Chiclet Slicer.
Could you please clarify how you tested the visual? Did you use pbiviz package or pbiviz start?
If you used pbiviz package you must also change the GUID to bypass our CDN.
If you experienced the issue with pbiviz start we would ask you to share more steps (screenshots or video) to reproduce the issue from our end since the Alt key works well on our end.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals