code: function(options) {
          return (
              '<div class="selectivity-result-item' +
              (options.disabled ? ' disabled' : '') +
              '"' +
              ' data-item-id="' +
              escape(options.id) +
              '">' +
              escape(options.text) +
              (options.submenu
                  ? '<i class="selectivity-submenu-icon fa fa-chevron-right"></i>'
                  : '') +
              '</div>'
          );
      }
docs: Render a result item in the dropdown.
  
  The template is expected to have a top-level element with the class
  'selectivity-result-item'. This element is also required to have a 'data-item-id' attribute
  with the ID set to that passed through the options object.
  
  @param options Options object containing the following properties:
  id - Identifier for the item.
  text - Text label which the user sees.
  disabled - Truthy if the item should be disabled.
  submenu - Truthy if the result item has a menu with subresults.