koolphp / koolreport

This is an Open Source PHP Reporting Framework which you can use to write perfect data reports or to construct awesome dashboards using PHP
https://www.koolreport.com/
MIT License
228 stars 65 forks source link

How to add Bootstrap, jQuery and FontAwesome to a report? #2

Open koolphp opened 7 years ago

koolphp commented 7 years ago

Starting from the KoolReport 1.27.6, we can added client-side library like Bootstrap, jQuery to view very easy like below:

<?php
class MyReport extends \koolreport\KoolReport
{
    use \koolreport\clients\jQuery;
    use \koolreport\clients\Bootstrap;
    use \koolreport\clients\FontAwesome;

}

If you want to add only Bootstrap CSS, you can do:

<?php
class MyReport extends \koolreport\KoolReport
{
    use \koolreport\clients\BootstrapCSS;

}

Easy, isn't it?