Code: Select all
<Column field="field" header="Field">
<template #body="slotProps">
<div :class="{ 'am-warn-cell': slotProps.data.field == '0'}">
{{slotProps.data.field}}
</div>
</template>
</Column>
So how can one set specific class with 'background-color' on whole 'td' tag depending on the cell content ?
Any help will be appreciated