Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Aug 2010
    Posts
    28
    Vote Rating
    0
    Ourysso is on a distinguished road

      0  

    Default How I set dynamically the value of the config option Header

    How I set dynamically the value of the config option Header


    I have the panel:
    id: 'tela_inicial',
    title: decode_utf8('Início'),
    layout: 'fit',
    iconCls: 'start-icon',
    border: false,
    bodyStyle: 'padding:0px',
    contentEl: 'start-div',
    header: true

    I want to set header: false when trigger an event. How i do it?

  2. #2
    Sencha User
    Join Date
    Aug 2009
    Posts
    480
    Vote Rating
    1
    plalx has a spectacular aura about plalx has a spectacular aura about

      0  

    Default


    Hi!

    I am not sure this is the most efficient way to go but this seems to work:

    *Note: This is not taking in account border, bodyBorder... config options.

    HTML Code:
    Ext.onReady(function() {
     
      var panel = new Ext.Panel({
       renderTo: document.body,
       title: 'test',
       width: 100,
       height: 100,
       listeners: {
        'afterrender': function() {
         this.showHeader(false);
        }
       },
     
       /**
        * Show or hide header element.
        * @param value {Boolean} True to show, false to hide.
        */
       showHeader: function(value) {
        //Show/hide the header element
        this.header.setStyle('display', value? 'block' : 'none');
     
        //Add/remove a top border to the body
        this.body.setStyle({
         'border-style':  (value? 'none': 'solid') + ' solid solid',
         'border-width' : (value? '0': '1px') + ' 1px 1px'
        });
       }
      });
     });

Similar Threads

  1. Config option to set on Ext.grid.Column, so that the column is not Draggable?
    By kugaprakash in forum Ext 3.x: Help & Discussion
    Replies: 6
    Last Post: 25 Aug 2010, 12:38 PM
  2. How do I set fieldset 'title' config option to be something from a database?
    By kevin-berry in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 27 May 2010, 3:43 PM
  3. dynamically set combobox's hidetrigger config option
    By sunjiankirk in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 26 Feb 2010, 1:42 AM
  4. changing header config option in Ext.grid.CheckboxSelectionModel
    By lucox in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 26 Mar 2009, 11:56 PM
  5. Replies: 2
    Last Post: 22 Apr 2008, 4:04 AM

Thread Participants: 1