Skip to main content

addItemBefore

Type​

property

Summary​

Adds one or more items before item index itemPointer.

Syntax​

set the addItemBefore of widget to <list>

Description​

Use the addItemBefore property to add one or more items before the item pointed by itemPointer to the list. This property will always return an empty string.

Examples​

-- Adds two new items at the beginning of the list
set the itemPointer of widget "PolyList" to 1
set the addItemBefore of widget "PolyList" to [{"title":"One"},{"title":"Two"}]

Value​

NameTypeDescription

value

A number indexed array containing one array for each new item to add

property: itemPointer, addData, addItemAfter