Files
EasySoft-ZenTaoPMS/lib/zin/wg/batchactions/v1.php
T

40 lines
926 B
PHP

<?php
declare(strict_types=1);
namespace zin;
class batchActions extends wg
{
protected static array $defineProps = array(
'actionClass?: string=""',
);
public static function getPageJS(): ?string
{
return file_get_contents(__DIR__ . DS . 'js' . DS . 'v1.js');
}
protected function build()
{
return formGroup
(
setClass('ml-2'),
div
(
setClass($this->prop('actionClass')),
btn
(
setClass('ghost add-btn'),
set::icon('plus icon-lg'),
bind::click('addItem(event)')
),
btn
(
setClass('ghost del-btn'),
set::icon('close icon-lg'),
bind::click('removeItem(event)')
)
)
);
}
}