Avatar/thumbnail option in dropdown
Cannonb4ll opened this issue · 1 comments
Cannonb4ll commented
Is this planned?
TerryZ commented
The show-filed
option can be string and function types. When you set a string type, it will specify a data column as show text content, set function type like below:
<template>
<v-selectpage key-field="id" :show-field="render"></v-selectpage>
</template>
<script>
export default {
methods: {
render(row) {
const html = `<img src="${row.avatar}" />`;
return html;
}
}
}
</script>
You can build anything you want in function.