I tried to create a SimpleCard inside a dashboard but can't get it to display correctly. I'm I doing it right by using KWidget here?
Card example:
<?php
namespace Main;
use \koolreport\dashboard\widgets\KWidget;
class MainCard extends KWidget
{
use \koolreport\amazing\Theme;
protected function onInit()
{
$this
->use(\koolreport\amazing\SimpleCard::class)
->settings([
"title"=>"Income",
"value"=>7500,
"cssClass"=>array(
"icon"=>"fa fa-dollar"
)
]);
}
}
Result:
It seems it's mising some CSS but I see no errors on browser dev console.