Hi Donald,
I don't think you can use CSS classes/ids to change the DOM, you can
only style it. You could theoretically use a Javascript hack but it
wouldn't be nice.
What I would do is:
1. Define a tag that renders a radio control:
<def tag="my-radio-tag">
...
</def>
2. Use it in the fields you need
<form:>
<field-list>
<my-field-view:><my-radio-tag/></my-field-view:>
</field-list:>
</form:>
This way, the rest of the enum string fields would still render the
default select.
What do you think?
Regards,
Ignacio
El 17/09/13 04:53, Donald Ziesig escribió:
> Hi again!
>
> Well, I hacked and hacked and got tag='input'
> for='HoboFields::Types::EnumString' to optionally render code for radio
> buttons or drop down lists, depending on the value of a
> controller-defined variable. This is great when a form needs only one
> or the other, but not so good if the form needs both in different fields.
>
> I would like to be able to select the style based on the id or class of
> an enclosing <div> as set by css to produce a more general tag. In the
> new tag we would have something like <div id=method_name> ... buttons or
> select </div> and in css #method_name{ radio : true }
>
> Is this possible?
>
> Does anyone have any suggestions as to how I could make this happen
> (with or without css, but integrated with hobo forms)?
>
> Thanks,
>
> Don Ziesig
>
--
Ignacio Huerta Arteche
http://www.ihuerta.net
Teléfono: 0034 645 70 77 35
Email realizado con software libre
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/groups/opt_out.