简体   繁体   English

如何在 angular 的 ng 引导模式中使用数据表

[英]how to use datatable in ng bootstrap modal in angular

How can I draw data table in ng bootstrap modal in angular.如何在 angular 的 ng bootstrap 模式中绘制数据表。 I Used bootstrap and angular-data tables module.我使用了引导程序和角度数据表模块。 I want to draw data table in bootstrap modal.我想在引导模式中绘制数据表。

simply add datatable code in body part of modal只需在模态的正文部分添加数据表代码

<div class="modal" tabindex="-1" role="dialog">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title">Modal title</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <p>table code here</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary">Save changes</button>
        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
      </div>
    </div>
  </div>
</div>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM