widgets, fontawesome add

This commit is contained in:
2025-01-20 16:57:48 +03:00
parent 32fbc234ef
commit 22f7ecff6a
25 changed files with 2792 additions and 64 deletions

View File

@ -0,0 +1,33 @@
<?php
namespace App\Widgets;
use Arrilot\Widgets\AbstractWidget;
class IconBtnCreateWidget extends AbstractWidget
{
/**
* The configuration array.
*
* @var array
*/
protected $config = [];
/**
* Treat this method as a controller action.
* Return view() or other content to display.
*/
public function run(): void
{
$url = $this->config['url'];
$btn = new ActionButtonWidget([
// 'label' => "<i class='fa-regular fa-square-plus'></i>",
'label' => "Создать",
'url' => $url,
'btn_type' => "success",
'title' => "Создать"
]);
$btn->run();
}
}