pashminakazi commented on issue #871:
URL: https://github.com/apache/royale-asjs/issues/871#issuecomment-647636632
In Flex comboBase is implementing get value like :
```
public function get value():Object
{
if (_editable)
return text;
var item:Object = selectedItem;
if (item == null || typeof(item) != "object")
return item;
// Note: the explicit comparison with null is important, because
otherwise when
// the data is zero, the label will be returned. See bug 183294 for
an example.
return item.data != null ? item.data : item.label;
}
```
_editable is used in get value but get and set editable is not implemented
in Royale,Here's the code for get and set editable in Flex
```
private var _editable:Boolean = false;
/**
* @private
*/
mx_internal var editableChanged:Boolean = true;
[Bindable("editableChanged")]
[Inspectable(category="General", defaultValue="false")]
public function get editable():Boolean
{
return _editable;
}
/**
* @private
*/
public function set editable(value:Boolean):void
{
_editable = value;
editableChanged = true;
invalidateProperties();
dispatchEvent(new Event("editableChanged"));
}
```
This is using invalidateProperties() which is UIComponent property and not
implemented in UIComponent
----------------------------------------------------------------
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:
[email protected]