Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70442

How can i do when user click on a button its show active

$
0
0

@flycoders_sourav wrote:

I have a 4 (four) button . i want when user click on a buttting its show active
Please helpe me anyone
below my html code

 <ion-row>
      <ion-col col-6><button class="butt-col active" ion-button full value="1" (click)="getvalue(1)"><i class="fa fa-rupee"></i>&nbsp; 1</button></ion-col>
      <ion-col col-6><button class="butt-col" ion-button full value="2" (click)="getvalue(2)"><i class="fa fa-rupee"></i>&nbsp; 2</button></ion-col>
  </ion-row>
  <ion-row>
    <ion-col col-6><button class="butt-col" ion-button full value="5" (click)="getvalue(5)"><i class="fa fa-rupee"></i>&nbsp; 5</button></ion-col>
    <ion-col col-6><button class="butt-col" ion-button full  value="10" (click)="getvalue(10)"><i class="fa fa-rupee"></i>&nbsp; 10</button></ion-col>
</ion-row>

THanks in advance

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70442

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>