TagCloud.getClickToFront

Syntax

getClickToFront();

Description

The getClickToFront method determines whether a tag item is sent to front on clicking on it.

Comments

If the method returns the True value, items are moved to front on clicking them by the mouse button.

Example

To execute the example, the page must contain the TagCloud component named tagCloud (see Example of Creating the TagCloud Component). Check whether cloud items are moved to the front on clicking:

// Check whether cloud items are moved to the front on clicking.
if (tagCloud.getClickToFront()) {
    console.log("Items are moved to the front on clicking");
} else {
     console.log("Items are not moved to the front on clicking");
}

The console displays information about clicking on the items:

Items are not moved to the front on clicking

See also:

TagCloud