SAE_RIOT_2024/onzer.riot

38 lines
1.2 KiB
Plaintext
Raw Normal View History

2024-06-20 15:08:44 +02:00
<onzer>
<div class="flex-col justify-center">
<div class="flex-row justify-start margin-bottom-6">
<input type="button"
onclick={ click }
value="Albums"
class="margin-top-8 margin-right-8 margin-bottom-8 wh light-green-bg border"/>
</div>
<div class="flex-row justify-center">
<form onsubmit={ add }>
<input class="wh border text-align-left align-stretch light-green-bg font-size-24"
placeholder={ this.state.placeholder } onkeyup={ edit } />
</form>
</div>
</div>
<script>
export default {
onBeforeMount(e){
this.state.placeholder = "Rechercher dans les albums";
},
edit(e) {
e.preventDefault()
this.state = {items: [{item: "caca", size: 23}, {item: "aze", size: 3}]};
this.state.name = "Gros caca";
console.log(this.state)
this.update();
},
click(e) {
e.preventDefault();
console.log("Les gros cacas");
}
}
</script>
</onzer>