Need help for button loop to hide grid layout when clicked


#1

@home.html
<button ion-button id=“isGrid” class=“isGrid”(click)=“changemode(‘Grid’)”>Grid

  <ion-row>
    <ion-col class="cell-1">
    
    </ion-col>
  </ion-row>

</ion-content>

@home.scss

.grid-full ion-row {
height: 1%;
padding: 0%;
flex-wrap: wrap;
}

      .grid-full ion-col {
        flex: 0 0 0%;
        max-width: 0%;
        text-align:center;
        padding: 131px 3px;
      }
    
      .cell-1 {
        background-color: #C5DCFC;
      }