Container.showAt

Syntax

showAt (index);

Parameters

index. Index of the component to be shown.

Description

The showAt method displays the child item of the container by its index.

Comments

The method displays the items hidden by the hideAt method.

Example

To execute the example, the HTML page must contain the GridPanel component named container (seep; Example of creating the GridPanel component). Add HTML buttons clicking which hides and shows the first item located on the GridPanel component:

<button onclick= "hide()">Hide first item</button>

<button onclick= "show()">Show first item</button>

The following functions must be added to the javascript code:

function hide() {

    container.hideAt(0);

};

function show() {

    container.showAt(0);

};

The first child item of the table is hidden by clicking the Hide First Item button after an example execution. Hidden item is shown by clicking the Show First Item button.

See also:

Container