1. #1
    Sencha User
    Join Date
    Sep 2011
    Location
    Taiwan
    Posts
    106
    Vote Rating
    2
    cwtuan is on a distinguished road

      0  

    Default [4.1] How to set opacity for a node in tree panel?

    [4.1] How to set opacity for a node in tree panel?


    I would like to set opacity for a node in tree panel.
    Does anyone know how to use setOpacity in nodeInterface?

    Thanks!

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    Hi!
    You can set the opacity by using element's ID, as an example,
    setOpacity Sets the opacity of the element.
    Code:
    Ext.fly('elementId').setOpacity(.5);
    Ext.fly('elementId').setOpacity(.45, true); // animates
    
    // animates with a duration of half a second
    Ext.fly('elementId').setOpacity(.45, {duration: .5});


    clearOpacity Clears any opacity settings of the element.
    Code:
    Ext.fly('elementId').clearOpacity();
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  3. #3
    Sencha User
    Join Date
    Sep 2011
    Location
    Taiwan
    Posts
    106
    Vote Rating
    2
    cwtuan is on a distinguished road

      0  

    Default


    If there is a node with id='xxx' on the tree panel, I execute
    var el = Ext.fly('xxx');
    Why is el null?

Thread Participants: 1

Tags for this Thread