code: function SearchBar(language){
  	this.type = "SearchBar";
  	this.options = {};
  	this.element = null;
  	this.isNested = false;
  	this.language = language ? language : "en";
  
  	this.translations = {
  							da: {
  								search: "Søg"
  							},
  							en: {
  								search: "Search"
  							}
  						}
  }
docs: /*
  
  Options:
  - delayedSearch (number of ms to wait while typing - undefined for instant)
  - onSearch
  - style
  - dropDownItems
  can be array like: [{title: "Item 1", query: "val1"}, {title: "Item 2", query: "val2"}]
  or function called for data: function(callback){...}
  - delayIfCharsBelow		: number of chars below which auto search is delayed. Default 0.
  - delayIfCharsBelowFactor : factor multiplied on delay if number of chars is below delayIfCharsBelow. Default 2.
  
  
  Notes:
  - In onSearch, you can access a tablecreator on the same popup like: this.popupCreator.contentObjects[1].reloadData(query);
  - You can use $(SEARCHBAR).trigger("dosearch") to force a search