class ActionsRender extends GridActions

deprecated 4.0-dev

Traits

Properties

protected object $row from  Render
protected mixed $value from  Render
protected string $field 字段名称 from  Render
protected array $items from  UseActions
protected array $defaultStyle 默认样式 from  UseActions
protected bool $dropdownIcon

下拉菜单使用 icon

from  UseActions
protected string $style 样式 from  UseInteraction
protected int $length from  UseInteraction

Methods

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

创建一个渲染实例

from  Render
array|object
getRow()

当前行的数据

from  Render
Jsonable
render($callback = null)

No description

add(array|Action $action)

Append an action.

default(array $style = [])

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

quickIcon()

No description

target(string $title, string $url)

请求

iframe(string $title, string $url)

请求

mixed
useDefaultStyle($action)

调用默认的样式

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

下拉样式

request(string $title, string $url)

请求

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

页面

copy(string $title, string $content)

复制内容

progress(string $title, string $url)

进度

Details

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

创建一个渲染实例

Parameters

mixed $value
object|array $row
$field

in Render at line 43
array|object getRow()

当前行的数据

Return Value

array|object

in GridActions at line 21
Jsonable render($callback = null)

No description

Parameters

$callback

Return Value

Jsonable

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

Append an action.

Parameters

array|Action $action

Return Value

UseActions

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

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

Parameters

array $style

Return Value

UseActions

in UseActions at line 61
UseActions quickIcon()

No description

Return Value

UseActions

in UseActions at line 73
TargetAction target(string $title, string $url)

请求

Parameters

string $title
string $url

Return Value

TargetAction

in UseActions at line 88
IframeAction iframe(string $title, string $url)

请求

Parameters

string $title
string $url

Return Value

IframeAction

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

调用默认的样式

Parameters

$action

Return Value

mixed

in UseInteraction at line 30
UseInteraction styleDropdown(int $length = 5, bool $icon = false)

下拉样式

Parameters

int $length 长度
bool $icon 图标

Return Value

UseInteraction

in UseInteraction at line 48
RequestAction request(string $title, string $url)

请求

Parameters

string $title
string $url

Return Value

RequestAction

in UseInteraction at line 64
PageAction page(string $title, string $url, string $type)

页面

Parameters

string $title
string $url
string $type

Return Value

PageAction

in UseInteraction at line 79
CopyAction copy(string $title, string $content)

复制内容

Parameters

string $title
string $content

Return Value

CopyAction

in UseInteraction at line 95
ProgressAction progress(string $title, string $url)

进度

Parameters

string $title
string $url

Return Value

ProgressAction