Results 1 to 5 of 5
  1.    #1  
    This has been driving me up the wall this afternoon. Can someone tell me how to hide a widget? I can't seem to get the display attribute to start out as 'none' for a button using

    this.buttonAtt1 = {
    display: 'none',
    };

    and then passing that into

    this.controller.setupWidget('Button',this.buttonAtt1,
    this.buttonModel1);

    I would appreciate any advice very much.
  2.    #2  
    I'm still stuck... Anyone want to take a guess at my problem?
  3. #3  
    this.controller.get('Button').setStyle({
    "display: "none"
    });

    there you go
  4. #4  
    It is also worth noting that "display":"block" will make the widget visible again.
  5. #5  
    Or if you're not using the lightweight attribute (and prototype is loaded) you can:
    Code:
    $('button_id').hide();
    or .show();

Posting Permissions