You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hyper-set/views/card-module.js

20 lines
511 B

export default{
emits:['unSelected','selected'],
props: ['card','id'],
data: function(){
return{
idUsed:"id"+this.id,
isClicked:false,
}
},
methods:{
clicked() {
this.$emit('selected',this.id);
}
},
template:`
<div v-bind:id="idUsed" v-bind:style="{border: '2px solid black',margin:'20px', color: 'red', fontSize: '20px', cursor: 'pointer' }" v-on:click="clicked">
{{card.attributes}}
</div>
`
}