Which inline list item is clicked

Yes, that works.

See also below for a similar use case: