визуализировать таблицу по модалу в твиттере - PullRequest
0 голосов
/ 11 сентября 2018

Я сталкиваюсь с проблемой не отображения таблицы на модале начальной загрузки Twitter.Я делаю то же самое, что упомянуто в jsfiddle (http://jsfiddle.net/iamakshay04/sh26m80o/2/). Поэтому, чтобы проверить это, я попытался точно так же упомянуто и обнаружил, что данные (таблица) отображаются на странице вместо модальных.

<div id="classModal" class="modal fade bs-example-modal-lg" 
     tabindex="-1" role="dialog" aria-labelledby="classInfo" aria-hidden="true">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
          ×
        </button>
        <h4 class="modal-title" id="classModalLabel">
          Class Info
        </h4>
      </div>
      <div class="modal-body">
        <table id="classTable" class="table table-bordered">
          <thead>
          </thead>
          <tbody>
            <tr>
              <td>CLN</td>
              <td>Last Updated Date</td>
              <td>Class Name</td>
              <td># Tests</td>
              <td>Test Coverage (Instruction)</td>
              <td>Test Coverage (Complexity)</td>
              <td>Complex Covered</td>
              <td>Complex Total</td>
              <td>Category</td>
            </tr>
          </tbody>
        </table>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary" data-dismiss="modal">
          Close
        </button>
      </div>
    </div>
  </div>
</div>

jQuery:

$('#classModal').modal('show')

CSS:

#classModal {}

.modal-body {
  overflow-x: auto;
}
...