I’ve created a nested list with following structure:
Now I’m performing different-2 task on these items using onNestedlistLeafItemTap as follows:
if (record.data.text === 'Shop Item') // Item-1 Shop Item
{
// some line of code
}
if (record.data.text === 'RIM Item') // Item-1 RIM Item
{
// some line of code
}
if (record.data.text === 'My Item') // Item2- My Item
{
// some line of code
}
But problem is here: How can I distinguish which Shop Item is tapped that means Item1-> Shop Item is tapped or Item2-> Shop Item is tapped because in both case only first condition is called. Let me know how can resolved this problem.
Any help is appreciating!!