code: function getEnabledOptions(element) {
    var retVal = [];
    Object.values(Option).forEach(function(option) {
      if (element.classList.contains(option)) {
        retVal.push(option);
      }
    });
    return retVal;
  }
docs: finds option class names on passed element