Hi List

Thanks for all the inspiring input on that topic.
Funny, it seems like everybody has written a form-factory sooner or
later  :)
I started to do the same thing now (almost done) and i'm quite happy
with the results. I can now even dynamically build forms with
conditional sub-forms (eg. one selects something from a dropdown, then a
specific sub-form for details opens below the dropdown). Thanks to
qooxdoo this is feasible!

Now i'm on to validation and stuff and got some more questions:
I have mandatory and optional fields. I'd like to have a different look
for the mandatory fields, say the Label should be bold or have another
color.
I'd rather not set the font properties directly in my code, since that
would mix logic and presentation. Therefore i had a look at the theming
and appearance documentation but i didn't understand a lot there  :)

Maybe somebody could be so kind and point me into the right direction.
I'd like to have some special appearance for a label, let's name it
"requiredlabel". There i would define color and font. That's what i
tried (just for testing):

qx.Theme.define("myapp.theme.Appearance", {
        extend : qx.theme.modern.Appearance,

        appearances : {
                "requiredlabel" : {
                        "textColor" : "#ff0000"
                }
        }
});

Then in the code:
mylabel.setAppearance("requiredlabel");

This doesn't seem to work though... i guess i got it completely wrong.

Any help is appreciated.
Thanks - Roman

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to