Bootstrap Table with Summary and Detail -
i'm trying use bootstrap tables create table shows summary rows, , allows expand summary show details clicking plus sign.
use in table definition , write detail code
<table id="yourtable" data-detail-view="true data-detail-formatter="detailformatter"> ... <script> function detailformatter(index, row) { var html = []; $.each(row, function (key, value) { html.push('<p><b>' + key + ':</b> ' + value + '</p>'); }); return html.join(''); } </script>
Comments
Post a Comment