Constructor

	AutoComplete(formName: String)
	
		Generates an instance of AutoComplete.
		
			formName name or id of the form where the fields are
		
	


Properties

	AutoComplete.size: Integer
	Indicates the maximum amount of items that will be shown in the combo (size property of the select). The default value is 5.

	AutoComplete.matchExact: Boolean
	If true, only perfect matches will appear in the list, otherwise the class will search for any occurrence of the searched word. The default value is true.

	AutoComplete.ignoreAccents: Boolean
	Indicates if the class will ignore the accents while searching. The default value is true.


Methods

	AutoComplete.addField(fieldName: String, list: Array, [className: String]): void
	
		Attaches the autocomplete to a field.
		
			fieldName name of the input that will receive the auto-complete
			list list where the class will search for matches
			className CSS class name that will be used by the auto-complete
		
	
	AutoComplete.show(field: HTMLInputElement): void
	
		Shows the list assigned to the field.
		
			field field reference
		
	
	AutoComplete.hide(field: HTMLInputElement): void
	
		Hides the list assigned to the field.
		
			field field reference
		
	
	AutoComplete.show(field: HTMLInputElement): void
	
		Filters the list assigned to the field.
		
			field field reference
		
	


Events

	AutoComplete.onSelect: function(index: Integer): void
	
		This event is called when an item is selected with double-click or enter.
		The word "this" inside the callback refers to the auto-complete &lt;select&gt; object.
		
			index index of the selected option
		
	
	AutoComplete.onShow: function(field: HTMLField): void
	
		This event is called when the list is shown.
		
			field input element that is attached to the autocomplete
		
	
	AutoComplete.onHide: function(field: HTMLField): void
	
		This event is called when the list is hidden.
		
			field input element that is attached to the autocomplete
		
	
