Created
December 13, 2010 19:57
-
-
Save squeedee/739503 to your computer and use it in GitHub Desktop.
Looking good :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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