function setValues(v, selected){
		if(!v)
			v = [];
		values = v;
		if(selected)
			value = selected;
		var code = "";
		var index = 0;
		for(var i in values)
		{
			var item_value = values[i];
			var item_index = values.constructor === Array ? index : i;
			var item_title = values.constructor === Array ? item_value : i;
			if(item_value && item_value.title)
				item_title = item_value.title;
			code += "<option value='"+item_index+"' "+( item_value == value ? " selected":"")+" data-index='"+item_index+"'>" + item_title + "</option>";
			index++;
		}
		element.querySelector("select").innerHTML = code;
	}
Widget to edit an enumeration using a combobox
@method addCombo
@param {string} name 
@param {*} value 
@param {Object} options, here is a list for this widget (check createWidget for a list of generic options):
- values: a list with all the possible values, it could be an array, or an object, in case of an object, the key is the string to show, the value is the value to assign
- disabled: true to disable
- callback: function to call once an items is clicked
@return {HTMLElement} the widget in the form of the DOM element that contains it