Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > JavaScript API > RunnerPage object > Methods

JavaScript API: RunnerPage object > toggleItems()

Scroll Prev Next More

 

Shows or hides a set of page elements in JavaScript events. Similar to toggleItem() function but will work much faster if you need to show or hide a large number of elements.

Syntax

toggleItem( itemIds, show );

Arguments

itemIds

array with the element IDs. You can use this method only with the items (elements) that have an ID. How to find item ID?

show

use true to show the item, and false to hide it.

Return value

No return value.

Example

// hide some fields
 
pageObj.toggleItems( [
'integrated_edit_field1',
'integrated_edit_field2',
'integrated_edit_field3'
], false );

 

See also:

RunnerPage class: toggleItem()

RunnerPage class: hideItem()

RunnerPage class: showItem()

JavaScript API: RunnerPage object > hideField()

JavaScript API: RunnerPage object > showField()

AJAX helper object

Click action

Field events

JavaScript API: RunnerPage object

JavaScript API

 

Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software