Select to view content in your preferred language

List does not have an event for when any of the calcite-list-item selections have changed

618
3
Jump to solution
02-21-2023 10:25 AM
GregoryBologna
Occasional Contributor II

Is there going to be a calciteListChange event for calcite-list as with the now deprecated calcite-pick-list?

 

 

1 Solution

Accepted Solutions
KittyHurley
Esri Contributor

@GregoryBologna @TomSellsted We have a calciteListItemSelect event for List item - here's a Codepen sample of the event.

You both bring up a great point as we move towards parity with the List components and additional property changes could be present. So we've added acceptance criteria to #6430 to add an event on List when changes occur on child List item elements as we continue to build on the List-named components.

Thanks for the great feedback!

View solution in original post

3 Replies
TomSellsted
MVP Regular Contributor

I had just noticed the same thing.  Maybe it was overlooked?

0 Kudos
KittyHurley
Esri Contributor

@GregoryBologna @TomSellsted We have a calciteListItemSelect event for List item - here's a Codepen sample of the event.

You both bring up a great point as we move towards parity with the List components and additional property changes could be present. So we've added acceptance criteria to #6430 to add an event on List when changes occur on child List item elements as we continue to build on the List-named components.

Thanks for the great feedback!

TomSellsted
MVP Regular Contributor

Thanks very much!  Much easier to add one event listener than one for each item.