You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2019/11/23 10:38:43 UTC
[GitHub] [royale-asjs] nihavend edited a comment on issue #563: Tree
component : labelFunction not implemented
nihavend edited a comment on issue #563: Tree component : labelFunction not implemented
URL: https://github.com/apache/royale-asjs/issues/563#issuecomment-557786626
@piotrzarzycki21 @aharui hope you have time to check.
I changed the function in ListBase.as as follows
```
/**
* @private
* @royaleignorecoercion org.apache.royale.core.ISelectionModel
*/
public function set labelField(value:String):void
{
if (labelFunction)
{
(model as ISelectionModel).labelField = labelFunction(value);
}
else
{
(model as ISelectionModel).labelField = value
}
// (model as ISelectionModel).labelField = value;
}
```
Unfortunately, labelField setter is called before the labelFunction setter so does not have any effect on the result.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services