1. #1
    Sencha User
    Join Date
    Aug 2008
    Posts
    226
    Vote Rating
    2
    TheBuzzer is on a distinguished road

      0  

    Default How do i remove a setIconStyle

    How do i remove a setIconStyle


    I want to remove the setIconStyle from a ContentPanel

    if I try using setIconStyle(null) or setIconStyle("") it does not work and causes tooltip buttons to show up which is a bit weird

    So anyone know the default setIconStyle?

  2. #2
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    4
    gslender is on a distinguished road

      0  

    Default


    Buzzer,

    I've submitted the patch below to Darrell - so if he takes it up, then hopefully this will be in a relase not too far away.
    Code:
    Index: Header.java
    ===================================================================
    --- Header.java	(revision 796)
    +++ Header.java	(working copy)
    @@ -124,6 +124,17 @@
       }
     
       /**
    +   * Removes the header's icon style.
    +   */
    +  public void removeIconStyle() {
    +    this.iconStyle = "";
    +    if (rendered) {
    +      textEl.removeStyleName("x-panel-icon");
    +      iconBtn.setVisible(false);
    +    }    
    +  }
    +
    +  /**
        * Sets the header's text.
        * 
        * @param text the new text

Thread Participants: 1