Control.hide

Syntax

hide();

Description

The hide method hides the control element.

Example

To execute the example, connect to the HTML page the PP.js library and the PP.css visual styles table.

Create three buttons: an instance of the Button class named MyButton and HTML buttons named Show and Hide. Clicking them hides or shows the first button.

<div id = "btn1"></div>
<br/>
<button onclick = "b1.hide();">Hide</button>
<button onclick = "b1.show();">Show</button>
<script type="text/javascript">
      var b1 = new PP.Ui.Button({
          ParentNode: document.getElementById("btn1"),
          Content: "Select"})
</script>

After executing the example on clicking the Hide button the Mybutton button is hidden. It appears on clicking the Show button.

See also:

Control