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