jquery-bootgrid - 更改默认标签
jquery-bootgrid - changing default labels
我正在使用 jquery-bootgrid,想知道如何更改 "loading" 和 "noResults" 标签。
多科 http://www.jquery-bootgrid.com/Documentation
州 "All labels can be set and overridden on initialization respectively."
但我不确定该怎么做。
它就是这样工作的:
$(function()
{
$("#grid").bootgrid({
labels: {
noResults: "where are my results"
}
});
});
<table id="grid" class="table table-condensed table-hover table-striped">
<thead>
<tr>
<th data-column-id="id" data-type="numeric">ID</th>
<th data-column-id="sender">Sender</th>
<th data-column-id="received" data-order="desc">Received</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet"/>
<link href="https://cdnjs.cloudflare.com/ajax/libs/jquery-bootgrid/1.1.4/jquery.bootgrid.min.css" rel="stylesheet"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-bootgrid/1.1.4/jquery.bootgrid.min.js"></script>
我正在使用 jquery-bootgrid,想知道如何更改 "loading" 和 "noResults" 标签。
多科 http://www.jquery-bootgrid.com/Documentation 州 "All labels can be set and overridden on initialization respectively."
但我不确定该怎么做。
它就是这样工作的:
$(function()
{
$("#grid").bootgrid({
labels: {
noResults: "where are my results"
}
});
});
<table id="grid" class="table table-condensed table-hover table-striped">
<thead>
<tr>
<th data-column-id="id" data-type="numeric">ID</th>
<th data-column-id="sender">Sender</th>
<th data-column-id="received" data-order="desc">Received</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet"/>
<link href="https://cdnjs.cloudflare.com/ajax/libs/jquery-bootgrid/1.1.4/jquery.bootgrid.min.css" rel="stylesheet"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-bootgrid/1.1.4/jquery.bootgrid.min.js"></script>