class ActionsRender extends Render

Traits

Properties

protected object $row from  Render
protected mixed $value from  Render
protected $type
protected array $items from  UseActions
protected array $defaultStyle 默认样式 from  UseActions
protected string $style 样式 from  UseActions
protected int $length from  UseActions
protected bool $dropdownIcon

下拉菜单使用 icon

from  UseActions

Methods

__construct(mixed $value, object|array $row)

创建一个渲染实例

from  Render
array|object
getRow()

当前行的数据

from  Render
string
getType()

No description

from  Render
Jsonable
render($callback = null)

No description

add(array|Action $action)

Append an action.

styleIcon()

快捷ICON

default(array $style = [])

设置默认样式, 该样式需是可以调用的 Action 方法

styleDropdown($length = 5, $icon = false)

No description

request(string $title, string $url)

返回请求

page(string $title, string $url, string $type)

返回页面

progress(string $title, string $url)

返回页面

mixed
useDefaultStyle($action)

调用默认的样式

quickIcon()

No description

Details

in Render at line 31
__construct(mixed $value, object|array $row)

创建一个渲染实例

Parameters

mixed $value
object|array $row

in Render at line 41
array|object getRow()

当前行的数据

Return Value

array|object

in Render at line 50
string getType()

No description

Return Value

string

at line 27
Jsonable render($callback = null)

No description

Parameters

$callback

Return Value

Jsonable

in UseActions at line 51
UseActions add(array|Action $action)

Append an action.

Parameters

array|Action $action

Return Value

UseActions

in UseActions at line 65
UseActions styleIcon()

快捷ICON

Return Value

UseActions

in UseActions at line 76
UseActions default(array $style = [])

设置默认样式, 该样式需是可以调用的 Action 方法

Parameters

array $style

Return Value

UseActions

in UseActions at line 83
UseActions styleDropdown($length = 5, $icon = false)

No description

Parameters

$length
$icon

Return Value

UseActions

in UseActions at line 101
RequestAction request(string $title, string $url)

返回请求

Parameters

string $title
string $url

Return Value

RequestAction

in UseActions at line 117
PageAction page(string $title, string $url, string $type)

返回页面

Parameters

string $title
string $url
string $type

Return Value

PageAction

in UseActions at line 132
ProgressAction progress(string $title, string $url)

返回页面

Parameters

string $title
string $url

Return Value

ProgressAction

in UseActions at line 148
protected mixed useDefaultStyle($action)

调用默认的样式

Parameters

$action

Return Value

mixed

at line 18
ActionsRender quickIcon()

No description

Return Value

ActionsRender