Good afternoon,
I have the following GRID with IONIC, it looks like this:
<ion-grid>
<ion-row class="cell-2">
<ion-col>
Código
</ion-col>
<ion-col>
Nome
</ion-col>
<ion-col>
Tipo
</ion-col>
<ion-col>
Descricao
</ion-col>
</ion-row>
<ion-row *ngFor="let item of dados" class="cell-1">
<ion-col>
{{item.CODIGO}}
</ion-col>
<ion-col>
{{item.NOME}}
</ion-col>
<ion-col>
{{item.TIPO}}
</ion-col>
<ion-col>
{{item.DESCRICAO}}
</ion-col>
</ion-row>
</ion-grid>
However, when viewing it on your phone it looks like this:
MyCSSlookslikethis:
page-cadastrar-ferramenta{.cell-1{background-color:#C5DCFC;}.cell-2{background-color:#262B69;color:white;}}
CanyouhelpmemakeGRIDresponsivetomobiledevices?
Myactionthatreturnsthedataisasfollows:
listar(){letdata={"token" : ""
};
this.http.get('http://www.ferramentasapi.sa-east-1.elasticbeanstalk.com/api/ferramentas', data, {})
.then(data => {
console.log(JSON.parse(data.data).rows); // data received by server
this.dados = JSON.parse(data.data).rows;
})
.catch(error => {
});
}