Skip to content

Instantly share code, notes, and snippets.

@squeedee
Created December 13, 2010 19:57
Show Gist options
  • Save squeedee/739503 to your computer and use it in GitHub Desktop.
Save squeedee/739503 to your computer and use it in GitHub Desktop.
Looking good :)
<?xml version="1.0"?>
<flextras:AutoCompleteComboBox xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns="com.visfleet.vWork.common.customerSelection.*"
xmlns:flextras="http://www.flextras.com/mxml/"
autoCompleteEnabled="true"
autoCompleteRemoteData="true"
labelField="name"
downArrowVisible="false"
styleName="generalTextInputStyle"
autoCompleteTextInputStyleName="generalTextInputStyle"
autoCompleteSelectOnEnter="true"
autoCompleteSelectOnEqual="true"
autoCompleteSelectOnSpecial="true"
>
<mx:Script><![CDATA[
import com.visfleet.vWork.common.customerSelection.CustomerSelectionContext;
import org.robotlegs.core.IInjector;
private var context:CustomerSelectionContext;
[Inject]
public function set parentInjector(value:IInjector):void {
context = new CustomerSelectionContext(this, true, value);
}
public function dispose():void {
context.dispose();
}
public function hasSelection():Boolean {
return (selectedIndex >= 0);
}
]]></mx:Script>
</flextras:AutoCompleteComboBox>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment