Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print page dont print footers. #1101

Open
d-arken opened this issue Apr 13, 2017 · 1 comment
Open

Print page dont print footers. #1101

d-arken opened this issue Apr 13, 2017 · 1 comment

Comments

@d-arken
Copy link

d-arken commented Apr 13, 2017

Summary of problem or feature request

The print button dont print the footers in the table.

Code snippet of problem


 <table class="table table-bordered table-condensed table-striped">
            @php ($flag = true)
            @foreach($data as $row)
                @if ($row == reset($data) && $flag)
                    <tr>
                        @foreach($row as $key => $value)
                            <th>{!! $key !!}</th>
                        @endforeach
                        @php ($flag = false)
                    </tr>
                @endif
                <tr>
                    @foreach($row as $key => $value)
                        @if(is_string($value) || is_numeric($value))
                            <td>{!! $value !!}</td>
                        @else
                            <td></td>
                        @endif
                    @endforeach
                </tr>
            @endforeach
        </table>

Thats the generated table, without

tag and without footer data.

System details

  • Operating System Windows 10 64bits (xampp)
  • PHP Version 5.6
  • Laravel Version "5.3.*",
  • Laravel-Datatables Version "~6.0"
@yajra
Copy link
Owner

yajra commented Apr 17, 2017

@d-arken good catch. Tagging for enhancement. If you can, please do not hesitate to submit a PR. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants