【发布时间】:2017-07-31 06:35:15
【问题描述】:
我想在 bootgrid 表中显示数据库中的图像,但我真的不知道该放在哪里,我该怎么办?如何将图像从数据库显示到我的 bootgrid 表?
这是我的示例代码
<table id="product_data" class="table table-bordered table-striped">
<thead>
<tr>
<th data-column-id="product_id" data-type="numeric">ID</th>
<th data-column-id="product_name">Nama Produk</th>
<th data-column-id="gambar">Gambar</th>
<th data-column-id="category_name">Nama Kategori</th>
<th data-column-id="product_price">Harga</th>
<th data-column-id="commands" data-formatter="image" data-sortable="false">Gambar</th> <!-- bootgrid image table header -->
<th data-column-id="commands" data-formatter="commands" data-sortable="false">Aksi</th>
</tr>
</thead>
</table>
【问题讨论】:
标签: javascript jquery jquery-bootgrid