May 31, 2012, 3:39 PM
[CLOSED] FontFamily style in ComboBox
Hi,
We are trying to build a ComboBox for a font family selection. Is it possible to show each item in the combo with their own font-family style?
More or less, something like this:
We are trying to build a ComboBox for a font family selection. Is it possible to show each item in the combo with their own font-family style?
More or less, something like this:
<ext:ComboBox runat="server" Width="120" Editable="false" ColSpan="5">
<Items>
<ext:ListItem Text="Arial" />
<ext:ListItem Text="Courier New" />
<ext:ListItem Text="Verdana" />
</Items>
<SelectedItems>
<ext:ListItem Index="0" />
</SelectedItems>
<Listeners>
<AfterRender Handler="item.getEl().dom.style.fontFamily = this.value;" />
<Change Handler="changeFontFamily(this.value);" />
</Listeners>
</ext:ComboBox>
Thanks in advance.
Last edited by Daniil; Jun 01, 2012 at 10:22 AM.
Reason: [CLOSED]