1

jquery-bootgrid を使用していますが、"loading" および "noResults" ラベルを変更する方法を知りたいです。

doco http://www.jquery-bootgrid.com/Documentation には、「初期化時にすべてのラベルをそれぞれ設定および上書きできる」と記載されています。

しかし、これを行う方法がわかりません。

4

1 に答える 1

2

それはそのように機能します:

$(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>

于 2015-05-01T01:08:49.510 に答える