Results 1 to 4 of 4

Thread: Combobox listConfig

  1. #1
    Sencha User
    Join Date
    Sep 2012
    Location
    Italy
    Posts
    7

    Default Combobox listConfig

    Hi,
    setting:

    listConfig : { selectedItemCls: 'my-item-selected-class'
    },
    in ComboBox configuration doesn't work. Css class remain x-boundlist-selected.
    Why? It's a bug?

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,410
    Answers
    716

    Default

    Please provide a small working example of what you are trying to achieve.

    Scott.

  3. #3
    Sencha User
    Join Date
    Sep 2012
    Location
    Italy
    Posts
    7

    Default

    Hi Scott,
    this is my simple combobox:

    var myPhone = new Ext.form.field.ComboBox({
    store: [[1,'iPhone'],[2,'Home'],[3,'Cell'],[4,'Office']],
    width: 60,
    editable: false,
    hideTrigger: true,
    listConfig : {
    selectedItemCls: 'item-selected-phone'
    },
    value: 1
    });

    I need only to customize the Css class of selected item in the combobox.

    Api of Ext.form.field.ComboBox:
    listConfig : Object6
    An optional set of configuration properties that will be passed to the Ext.view.BoundList's constructor. Any configuration that is valid for BoundList can be included. Some of the more useful ones are:
    Available since: Ext 4



    Api of Ext.view.BoundList:
    selectedItemCls : String2
    A CSS class to apply to each selected item in the view.
    Defaults to: Ext.baseCSSPrefix + 'item-selected'
    Available since: Ext 4


  4. #4
    Sencha User
    Join Date
    Dec 2011
    Posts
    23

    Default

    I experienced a similar behavior where the overItemCls configuration is ignored. The deprecated overCls works fine, but gives the deprecation warning.

    Code:
        listConfig:{
            loadingText:'Searching...',
            emptyText:'No matching entities found.',
            overCls : 'combobox_highlight',        // works .. but gives warning .. 
            overItemCls : 'combobox_highlight',        // doesn't work  
                                                                                                                                                                                    
        }
    Thanks
    T.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •