pashminakazi commented on issue #661: ColorPicker is not working
URL: https://github.com/apache/royale-asjs/issues/661#issuecomment-572898138
 
 
   When we open dbzPurchaseRequSetup **in Flex.**
   <s:TextInput color="{valueObj == null ? 0 : valueObj.purchaseRequColor}" 
contentBackgroundColor="{valueObj == null ? 0 : valueObj.purchaseRequColor}" 
id="purchaseRequColor"  width="100" tabIndex="3" maxChars="30"  x="187" y="223" 
height="19"/>
   
   the Color of s:TextInput  is same as the color of ColorPicker.
   then when we open ColorPicker and select any Color,the Change method of 
ColorPicker called
   <mx:ColorPicker id="purchaseColor" change="changeEvt(event);" x="296" 
y="223" height="19" width="108"/>
   
   public function changeEvt(event:ColorPickerEvent):void 
                        {
                                purchaseRequColor.text= 
event.currentTarget.selectedItem;
                        }
   
   This changeEvt is setting the color of textinput same as ColorPicker's color.
   
   **In Royale** 
   There's default selection of Color in ColorPicker,but textinput is not 
setting that Color,textinput is white,
   then when i change Color from ColorPicker **ChangeEvt** function Called but 
purchaseRequColor.text is null because there's no value in 
**event.currentTarget.selectedItem;**
   then i change 
   purchaseRequColor.text= event.currentTarget.selectedItem; to
   purchaseRequColor.text= event.currentTarget.selectedColor;
   then the number of color is setted on textInput,But not the Color.
   Video: 
   ![SelectedColor of 
colorpicker](https://user-images.githubusercontent.com/42200979/72131741-f23aa380-339e-11ea-96eb-c376d54c3931.gif)
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to