2017-01-19 5 views
0

data-checkboxのブートストラップテーブルを表示するにはどうしたらいいですか?データチェックボックスがすでにチェックされているブートストラップテーブルを表示

<div class="fixed-table-body"> 
    <div class="fixed-table-loading" style="top: 41px; display: none;">Chargement des données...</div> 
    <table id="GetSpiAttached" 
      data-toggle="table" 
      [email protected]("GetUser","User") 
      data-side-pagination="server" 
      data-pagination-next-text="›" 
      data-pagination-pre-text="‹" 
      data-toolbar="#toolbar"> 
     <thead> 
     <tr> 
      <th data-field="Id" data-sortable="true">Code Client</th> 
      <th data-field="Nom" data-sortable="true">Nom</th> 
      <th data-field="Prenom" data-sortable="true">Prénom</th> 
      <th data-field="TitreCivilite" data-sortable="true">Civilité</th> 
      <th data-checkbox="true"></th> 
     </tr> 
     </thead> 
    </table> 
</div> 

enter image description here

+0

どこで確認するチェックボックスを示して?ブートストラップテーブルオプションで? – AddRock

答えて

0

たとえば、以下のあなたにchecked

<!DOCTYPE html> 
 
<html lang="en"> 
 
<head> 
 
    <title>Bootstrap Example</title> 
 
    <meta charset="utf-8"> 
 
    <meta name="viewport" content="width=device-width, initial-scale=1"> 
 
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> 
 
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> 
 
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> 
 
</head> 
 
<body> 
 

 
<div class="container"> 
 
    <h2>Form control: inline checkbox</h2> 
 
    <p>The form below contains three inline checkboxes:</p> 
 
    <form> 
 
    <label class="checkbox-inline"> 
 
     <input type="checkbox" value="" checked>Option 1 
 
    </label> 
 
    <label class="checkbox-inline"> 
 
     <input type="checkbox" value="" checked>Option 2 
 
    </label> 
 
    <label class="checkbox-inline"> 
 
     <input type="checkbox" value="" checked>Option 3 
 
    </label> 
 
    </form> 
 
</div> 
 

 
</body> 
 
</html>

+0

あなたの答えをありがとう、それは私が必要なものではない、私はテーブルを表示するときにすべてのチェックボックスをオンにするには、ブートストラップテーブルのオプションが必要です。 – AddRock

関連する問題