You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to add a barcode with the data of the table row, but I am in difficulty because I have never done with laravel yajra datatable html serverside. Any ideas, can anyone give me some advice on how to integrate a barcode in the table
Code snippet of problem
public function dataTable(QueryBuilder $query): EloquentDataTable
{
return (new EloquentDataTable($query))
->setRowId('id')
->addColumn();
}
public function getColumns(): array
{
return [
Column::make('BarCode')->addClass(''),
];
}
<div class="d-flex justify-content-center">
{!! DNS1D::getBarcodeHTML($product['product_code'], "C128",1.4,22) !!}
</div>
<hr>
<div class="d-flex justify-content-center">
{!! DNS2D::getBarcodeHTML($product['product_code'], 'QRCODE') !!}
</div>
System details
Linux
PHP Version 8.2.15
Laravel Version 10.10
Laravel-Datatables Version 10.1
The text was updated successfully, but these errors were encountered:
Thank you very much for the answer, if I wanted a print button only for the generated barcode is it possible to do it?
I should print the barcode with a dymo
Summary of problem or feature request
I would like to add a barcode with the data of the table row, but I am in difficulty because I have never done with laravel yajra datatable html serverside. Any ideas, can anyone give me some advice on how to integrate a barcode in the table
Code snippet of problem
System details
The text was updated successfully, but these errors were encountered: