You can either:

  1. Put a condition on the icon to show a particular icon when the current item’s option set is x; or
  2. If the icon is specified by a text, you can create an attribute in the option set and set that as the data source for your item element