Dear team
Using Dashboard.
I have this widget extended from KWidget,I was following the documentation, but the result is a card with a "0" value.
How can I set a value and title to this?.
And If I want to get the value from database using params, for example: year, month and costumer?
<?php
namespace demo\instrument;
use demo\InstrumentDB;
use \koolreport\dashboard\widgets\KWidget;
//use \koolreport\dashboard\widgets\SimpleCard;
//use koolreport\chartjs\SimpleCard
class IntrumentSales extends KWidget
{
//protected function onInit()
protected function onInit()
{
$this->use(\koolreport\widgets\koolphp\Card::class)::create(array(
"title"=>"Month Sale",
"value"=>11249,
"baseValue"=>9230,
"format"=>array(
"value"=>array(
"prefix"=>"$"
)
)
));
}
}
Thanks for your support