StablexUI
StablexUI copied to clipboard
Cannot set defaults using xml argument
Hi All I'm trying to use xml argument to dynamically set defaults for a set of fields.
e.g. Text defaults="@defvar" name="'a" text="a" w="190" paddingLeft="5"/> Text defaults="@defvar" name="'b" text="b" w="190" paddingLeft="5"/>
but I get this error : characters 23-24 Unexpected . var defs = @defvar.split(",");
I can use @defvar as name or text without any problem. Am I missing something or it's simply not possible to use argument in this case ?
I know I can set defaults programatically but in this case, since I should do it one by one, the argument solution would be perfect.
Thanks