koolreport icon indicating copy to clipboard operation
koolreport copied to clipboard

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

Open koolphp opened this issue 7 years ago • 0 comments

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?

koolphp avatar Sep 02 '17 15:09 koolphp