[CLOSED] FontFamily style in ComboBox

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [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:

    <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]

Similar Threads

  1. Replies: 4
    Last Post: Nov 30, 2011, 5:25 AM
  2. Custom style for selected ComboBox item
    By nextSTEP in forum 1.x Help
    Replies: 1
    Last Post: Sep 20, 2010, 12:18 PM
  3. [CLOSED] Div does not take the style.
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 31, 2010, 11:29 AM
  4. [CLOSED] ComboBox style help
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 12, 2009, 7:52 AM

Tags for this Thread

Posting Permissions