Hi i want to create a datatable with dynamic columns but i want that some cells have style, I see in the web but the example they have is only this
stockBodyTemplate(rowData) {
const stockClassName = classNames({
'outofstock': rowData.quantity === 0,
'lowstock': rowData.quantity > 0 && rowData.quantity < 10,
'instock': rowData.quantity > 10
});
return (
<div className={stockClassName}>
{rowData.quantity}
</div>
);
}
I try it, but it does't work..
can you help me ?
Style to Datatable with dynamic columns ?
-
- Posts: 4569
- Joined: 29 Jun 2013, 12:38
Hi,
Could you please check your css classes in DOM? Please check our demo;
https://primefaces.org/primereact/showc ... able/style
Best Regards,
Could you please check your css classes in DOM? Please check our demo;
https://primefaces.org/primereact/showc ... able/style
Best Regards,
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 2 guests