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

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -