I'm working with ionic :
-
I've some ion-slide with checkboxes in there. Every checkbox have three possibly answer "Good" / "Average" / "Bad"
-
I would get for each checkbox the answer, the final objective is to report this in an Excel file.
CONTROLLER :
.controller('edlsimplecontroller', function($scope, $stateParams) {$scope.devListassietteplate = [
{ text: "Bon", checked: true },
{ text: "Moyen", checked: false },
{ text: "Mauvais", checked: false }
];
$scope.devListassiettecreuse = [
{ text: "Bon", checked: true },
{ text: "Moyen", checked: false },
{ text: "Mauvais", checked: false }
];
$scope.devListassiettedessert = [
{ text: "Bon", checked: true },
{ text: "Moyen", checked: false },
{ text: "Mauvais", checked: false }
];
$scope.devListbol = [
{ text: "Bon", checked: true },
{ text: "Moyen", checked: false },
{ text: "Mauvais", checked: false }
];
$scope.devListmug = [
{ text: "Bon", checked: true },
{ text: "Moyen", checked: false },
{ text: "Mauvais", checked: false }
];
$scope.devListverre = [
{ text: "Bon", checked: true },
{ text: "Moyen", checked: false },
{ text: "Mauvais", checked: false }
]; })
HTML
<ion-slide style="padding : 10px;">
<h3 style="text-align:center;"> Cuisine / Kitchen </h3>
<h3> Assiettes Plates </h3>
<ion-checkbox ng-repeat="item in devListassietteplate"
ng-model="item.checked"
ng-checked="item.checked">
</ion-checkbox>
</br> <h3> Assiettes creuses </h3>
<ion-checkbox ng-repeat="item in devListassiettecreuse"
ng-model="item.checked"
ng-checked="item.checked">
</ion-checkbox>
</br> <h3> Assiettes à dessert </h3>
<ion-checkbox ng-repeat="item in devListassiettedessert"
ng-model="item.checked"
ng-checked="item.checked">
</ion-checkbox>
</br> <h3> Bol </h3>
<ion-checkbox ng-repeat="item in devListbol"
ng-model="item.checked"
ng-checked="item.checked">
</ion-checkbox>
</br> <h3> Mug </h3>
<ion-checkbox ng-repeat="item in devListmug"
ng-model="item.checked"
ng-checked="item.checked">
</ion-checkbox>
</br> <h3> Verres </h3>
<ion-checkbox ng-repeat="item in devListverre"
ng-model="item.checked"
ng-checked="item.checked">
</ion-checkbox> </ion-slide>
So if somebody could advise me I've absolutely no idea about how I can save all these data (and in a second time report them into a xls document)
Thank you by advance.
Aucun commentaire:
Enregistrer un commentaire