Currently, I have a listview with three buttons that need to trigger the same method checkInstall
on multiple button clicks. However, I am unsure of how to achieve this. Below is the relevant code snippet:
html file:
<ListView [items]="allAppsList" class="list-group">
.......
.......
<StackLayout row="0" col="2">
<Button text= "Install" (tap) ="checkInstall($event, myIndex)" > </Button>
<Button text= "Open" (tap) ="checkInstall($event1, myIndex)" > </Button>
<Button text= "Remove" (tap) ="checkInstall($event2, myIndex)" > </Button>
</StackLayout>
</ListView>
ts file:
checkInstall(args: EventData, index : number) : void {
}
While the checkInstall method works fine for the first button, I am facing challenges in obtaining separate button IDs for the second and third buttons to trigger different functionalities within checkInstall such as hiding and showing buttons.