Skip to content

Commit

Permalink
Fix: #7161 replace src value in DataTable typescript documentation (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoScandiffio authored Sep 12, 2024
1 parent 14ccac1 commit 14e9180
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/doc/datatable/samples/productsdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ export default function ProductsDemo() {
};
const imageBodyTemplate = (rowData: Product) => {
return <img src={https://primefaces.org/cdn/primereact/images/product/\${rowData.image}} alt={rowData.image!} className="shadow-2 border-round" style={{ width: '64px' }} />;
return <img src={\`https://primefaces.org/cdn/primereact/images/product/\${rowData.image}\`} alt={rowData.image!} className="shadow-2 border-round" style={{ width: '64px' }} />;
};
const priceBodyTemplate = (rowData: Product) => {
Expand Down Expand Up @@ -959,7 +959,7 @@ export default function ProductsDemo() {
</div>
<Dialog visible={productDialog} style={{ width: '32rem' }} breakpoints={{ '960px': '75vw', '641px': '90vw' }} header="Product Details" modal className="p-fluid" footer={productDialogFooter} onHide={hideDialog}>
{product.image && <img src={https://primefaces.org/cdn/primereact/images/product/\${product.image}} alt={product.image} className="product-image block m-auto pb-3" />}
{product.image && <img src={\`https://primefaces.org/cdn/primereact/images/product/\${product.image}\`} alt={product.image} className="product-image block m-auto pb-3" />}
<div className="field">
<label htmlFor="name" className="font-bold">
Name
Expand Down

0 comments on commit 14e9180

Please sign in to comment.