Hugo, could it be seen? Maybe a branch or a PR?

Hiedra

-----Mensaje original-----
De: Hugo Ferreira <hferreira...@gmail.com> 
Enviado el: martes, 7 de junio de 2022 21:58
Para: Apache Royale Development <dev@royale.apache.org>
Asunto: Proposal for labelField with expression support

Hi,

In Flex "world" one can use labelField and labelFunction.
Here in Royale we have only labelField (at least I didn't see so far support 
for labelFunction), however I'm not a big fan of labelFunction anyway.

I always wanted support for something in between of labelField and 
labelFunction (labelFunction with multiple fields and fixed strings) and I 
implement it on my side.

Ex:
model:
public class User
{
public var Code:String;
public var Name:String;
}

With this model, one can use Code (user code) or Name but not the combined 
fields.

With a little adition I can now do something like this: labelField="[Code]
- [Name]" and at runtime every field delimited by [] it's replaced for his 
value, allowing multiple fields and complex expressions.

Can I commit this or there is a reason to not do so ?

Thank you,
Hugo.

Reply via email to