DataTable sortable does not work on template column
Posted: 28 Apr 2020, 16:49
DataTable sortable works on normal column with field attribute, but does not work on template column without field attribute.
Is there any way I can choose to sort on template column as follows?
<Column :sortable="true">
<template #body="slotProps">
{{ calculateScore(slotProps.data.items) }}
</template>
</Column>
Is there any way I can choose to sort on template column as follows?
<Column :sortable="true">
<template #body="slotProps">
{{ calculateScore(slotProps.data.items) }}
</template>
</Column>