You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Bart Remmerie <br...@telenet.be> on 2008/10/21 10:39:41 UTC
styling a cforms dojo combobox (suggestion-list)
Dear all,
Using a css-stylesheet it's pretty obvious to style your widgets and pages
when working with CForms,
but what I cannot seem to figure out is how to add styling (e.g. font-size)
to a CFormsSuggest dojo combobox:
it's possible to change the size of the textbox, but I cannot figure out how
to change the style of the options that appear in the dropdown-list.
Anyone who knows how to do this ?
This might be a dojo-related question, but studying the dojo-docs didn't get
me much further either.
form-definition
<fd:field id="nameFilter">
<fd:label>select employee</fd:label>
<fd:datatype base="string"/>
<fd:suggestion-list src="cocoon://suggest_employees"/>
</fd:field>
form-template
<ft:widget id="nameFilter" type="suggest"/>
--
Bart Remmerie
AW: styling a cforms dojo combobox (suggestion-list)
Posted by Christofer Dutz <ch...@c-ware.de>.
Hi,
I had similar Problems, I managed to solve them by two steps:
1. Install some tool to display which CSS Styles are active in the
Element underneath the Mouse-Pointer (Firbebug, IE Developer Toolbar, .)
2. Replace the CSS file provided in the dojo-rsc-jar by a custom one
(Would suggest a pipeline-approach serving a custom css if this css is
requested)
By this we were able to update the look of dojo components used in Corms.
Chris
Von: remmerie@gmail.com [mailto:remmerie@gmail.com] Im Auftrag von Bart
Remmerie
Gesendet: Dienstag, 21. Oktober 2008 10:40
An: users@cocoon.apache.org
Betreff: styling a cforms dojo combobox (suggestion-list)
Dear all,
Using a css-stylesheet it's pretty obvious to style your widgets and pages
when working with CForms,
but what I cannot seem to figure out is how to add styling (e.g. font-size)
to a CFormsSuggest dojo combobox:
it's possible to change the size of the textbox, but I cannot figure out how
to change the style of the options that appear in the dropdown-list.
Anyone who knows how to do this ?
This might be a dojo-related question, but studying the dojo-docs didn't get
me much further either.
form-definition
<fd:field id="nameFilter">
<fd:label>select employee</fd:label>
<fd:datatype base="string"/>
<fd:suggestion-list src="cocoon://suggest_employees"/>
</fd:field>
form-template
<ft:widget id="nameFilter" type="suggest"/>
--
Bart Remmerie