Re: [Cppcms-users] Specify CSS classes for form rendering
Brought to you by:
artyom-beilis
From: Artyom <art...@ya...> - 2010-08-26 05:33:26
|
> Hi, > > is it possible to specify the class argument for the <th> and <td> cells > being produced when rendering a form by <% form as_table myform %>? So > that e.g. a line like this is produced: > > <th class="my-label-class">Label</th><td class="my-field-class"><input > type="text"></td> > Generally no, But you always can create custom widgets rendering, using simple for loop. See as example code in src/hello_world_view1.tmpl lines: 13-19, in CppCMS sources. Artyom |