3.0 beta 2

AX.Visible

A mixin implementing visible property. Allows to hide/show a component or a layer.

var obj = new AX.HTML({
    use: 'visible',
    visible: false
});

Makes visible property default for boolean arguments.

Properties

visible

Hides/shows the component or layer by replacing the outerHTML with an empty string.

obj.visible(false); // hides the object