gui.findListItem
Prototype
hListItem = gui.findListItem ( hComponent, kDataRole, vValue, [iColumn=1], [hStartListItem=nil] )
Description
hComponent -/- valid list handle
kDataRole -/- predefined data role constant
vValue -/-
iColumn -/- optional column parameter 1..n, default 1
hStartListItem -/-
Return values
hListItem - handle to found list item on success, otherwise nil
Sample
function updateMainViewFileItemThumbnails ( hFile, bUpdateFileInfos, bUpdateFileStatus, bUpdateFileTargetProfile, _hList, hItem ) local hList = _hList or gui.getComponent ( "MainView.list.thumbnails" ) if ( hList ) then if ( hItem == nil ) then -- Find existing item for hFile hItem = gui.findListItem ( hList, hFile ) if ( hItem == nil ) then
Available since ShiVa 2.0