Ho do I programmatically access the items of dynamic repeater?
I have a dynamic repeater which has checkboxes. I also have a nonrepeater "All" checkbox that I want to use to check or uncheck all items in the repeater. Clicking each repeater item turns on/off model parts.
Is there a way to get data from the repeater and do something like "for all items in repeater, check box". It looks like all the items are just called "checkbox-1". Is there a way to use the hashkey or something to programatically change the of one or all of the items?
I currently am using this code:
//==================================================================
twx.app.fn.clickItemInRepeater = function(item,list,isMultiSelect)
{
console.warn("called clickItemInRepeater()");
$scope.changeValueInJson(list,item.id_num,'checked', item.checked?false:true)
console.log("clickItemInRepeater::ROW Selected:: "+JSON.stringify(item))
console.log('checked?'+ item.checked);
if(item.checked==false){
$scope.currentSelection = 'model-1-'+ item.SBOM;
console.log('showing '+$scope.currentSelection)
tml3dRenderer.setProperties($scope.currentSelection,{opacity : 1})
$scope.mysubsystemlist[item.number].checked=true;
}
else if(item.checked==true){
$scope.currentSelection = 'model-1-'+ item.SBOM;
console.log('hiding '+$scope.currentSelection)
tml3dRenderer.setProperties($scope.currentSelection,{opacity : 0})
$scope.mysubsystemlist[item.number].checked=false;
}
console.log('sbom? '+item.SBOM)
$scope.$applyAsync();
};


