1. #1
    Ext User
    Join Date
    May 2008
    Posts
    30
    Vote Rating
    0
    devext is on a distinguished road

      0  

    Default How to dynamically change the css style of the title?

    How to dynamically change the css style of the title?


    Hi friends,


    How can I change the css style of the title 'PRO SERIES 1' with 'beforeexpand' ?
    Thanks !

    HTML Code:
    proltd1.on('beforeexpand', ????????? );
    Accordion menu :

    HTML Code:
    new Ext.Panel({
      renderTo:'menu-partie1',
      autoHeight: true,
      ctCls: 'menu-rubrique-principale-header',
      baseCls: 'content-accordion',
      layout: 'accordion',
        defaults: {
        bodyStyle: 'padding:0.2em'
      },
      layoutConfig: {
        titleCollapse: true,
        animate: true,
        fill: false
      },
      items:[
      proltd1 = new Ext.Panel({
          id:'proltd1',
          title: 'PRO SERIES 1',
          cls: 'menu-rubrique-principale',
          hideCollapseTool:true,
          collapsed:true,
          contentEl:'proltd0'
    
      }),
      proltd2 = new Ext.Panel({
          id:'proltd2',
          title: 'PRO SERIES 2',
          cls: 'menu-rubrique-principale',
          hideCollapseTool:true,
          collapsed:true,
          contentEl:'classic-series'
      })
      
     ]
    });

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    4
    tryanDLS is on a distinguished road

      0  

    Default


    I would think you could inspect the rendered HTML in firebug to learn what CSS class is applied to the title element. You could add a CSS override to change it, over you could get a reference to that Element and call setStyle or addClass.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi