action btns icon widgets add
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Widgets;
|
||||
|
||||
use Arrilot\Widgets\AbstractWidget;
|
||||
use itguild\forms\debug\Debug;
|
||||
|
||||
class IconBtnCreateWidget extends AbstractWidget
|
||||
{
|
||||
@@ -17,17 +18,17 @@ class IconBtnCreateWidget extends AbstractWidget
|
||||
* Treat this method as a controller action.
|
||||
* Return view() or other content to display.
|
||||
*/
|
||||
public function run(): void
|
||||
public function run(): \Illuminate\Contracts\View\View|\Illuminate\Contracts\View\Factory|\Illuminate\Foundation\Application
|
||||
{
|
||||
$url = $this->config['url'];
|
||||
|
||||
$btn = new ActionButtonWidget([
|
||||
// 'label' => "<i class='fa-regular fa-square-plus'></i>",
|
||||
'label' => "Создать",
|
||||
return (new ActionButtonWidget([
|
||||
// 'label' => "class='fa-regular fa-square-plus'",
|
||||
'label' => "fa-regular fa-square-plus",
|
||||
// 'label' => "Создать",
|
||||
'url' => $url,
|
||||
'btn_type' => "success",
|
||||
'title' => "Создать"
|
||||
]);
|
||||
$btn->run();
|
||||
]))->run();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user