S4WEB/riot/app.riot

32 lines
653 B
Plaintext
Raw Normal View History

<app>
2023-03-27 23:24:25 +02:00
<div class="columns">
<div class="column is-one-third">
<choixformation isSelected={isSelected}></choixformation>
</div>
<div class="column">
<statistiqueFormation formation={state.filiere} choix={state.choix}> </statistiqueFormation>
</div>
</div>
<script>
export default function todos() {
return {
onBeforeMount(props, state) {
// initial state
this.state = {
2023-03-27 23:24:25 +02:00
choix: '',
filiere: ''
};
},
2023-03-27 23:24:25 +02:00
isSelected(formation, fili){
this.update({
choix: formation,
filiere: fili
})
}
}
}
</script>
</app>