Exemplo n.º 1
0
		internal Controller(HtmlAutoCompleteBehaviour selector)
		{
			this.selector = selector;
			this.oldOnSuggestionsRequested = selector.OnSuggestionsRequested;
			selector.OnSuggestionsRequested = CheckForEmailAddress;
			
			//oldItemChosen = selector.ItemChosen;
			//selector.ItemChosen = ItemChosen;
		}
Exemplo n.º 2
0
		internal Controller(HtmlAutoCompleteBehaviour selector)
		{
			this.selector = selector;
			
			this.oldOnSuggestionsRequested = selector.OnSuggestionsRequested;
			selector.OnSuggestionsRequested = CheckForEmailAddresses;
			
		
			
		}
		public MultiSelectorBehaviour(DOMElement container, HtmlAutoCompleteBehaviour htmlAutoComplete, InputElement hiddenOutput)
		{
			this.container = container;
			this.hiddenOutput = hiddenOutput;
			this.HtmlAutoComplete = htmlAutoComplete;
			this.HtmlAutoComplete.ItemChosen = htmlAutoComplete_ItemChosen;
			selections = new PairListField(hiddenOutput);
			InitialiseInitialSelections();
			DomEvent.AddHandler(this.container, "click", this.OnClick);
			
		}