Allow overriding the behavior when an item is clicked.