class Actions extends AbstractDisplayer

Traits

Properties

Model $row from  AbstractDisplayer
protected Grid $grid from  AbstractDisplayer
protected Column $column from  AbstractDisplayer
protected mixed $value from  AbstractDisplayer
protected array $items from  UseItems

Methods

__construct(mixed $value, Grid $grid, Column $column, stdClass $row)

Create a new displayer instance.

mixed
getValue()

No description

getGrid()

No description

getColumn()

No description

mixed
getKey()

Get key of current row.

string
getResource()

Get url path of current resource.

mixed
display($callback = null)

No description

add(array|Renderable $action)

Append an action.

from  UseItems
iframe(string $title, string $url)

地址弹窗

loadView(string $title, string $url)

加载Tab

copy(string $title, $content)

复制

request(string $title, string $url)

请求

toolbar(string $title, string $url) deprecated

请求

batchRequest(string $title, string $url)

请求

batchIframe(string $title, string $url)

请求

page(string $title, string $url)

页面

dropdown(string $title, Closure $callable)

下拉操作项

append(array|string $action) deprecated

Append an action.

void
edit($url)

No description

void
delete($url, $title)

No description

void
disable($url, $title, $status = '已启用')

No description

void
enable($url, $title, $status = '已禁用')

No description

Details

in AbstractDisplayer at line 42
__construct(mixed $value, Grid $grid, Column $column, stdClass $row)

Create a new displayer instance.

Parameters

mixed $value
Grid $grid
Column $column
stdClass $row

in AbstractDisplayer at line 53
mixed getValue()

No description

Return Value

mixed

in AbstractDisplayer at line 61
Grid getGrid()

No description

Return Value

Grid

in AbstractDisplayer at line 69
Column getColumn()

No description

Return Value

Column

in AbstractDisplayer at line 80
mixed getKey()

Get key of current row.

Return Value

mixed

in AbstractDisplayer at line 90
string getResource()

Get url path of current resource.

Return Value

string

at line 58
mixed display($callback = null)

No description

Parameters

$callback

Return Value

mixed

in UseItems at line 25
UseItems add(array|Renderable $action)

Append an action.

Parameters

array|Renderable $action

Return Value

UseItems

in UseInteraction at line 27
IframeOperation iframe(string $title, string $url)

地址弹窗

Parameters

string $title
string $url

Return Value

IframeOperation

in UseInteraction at line 42
LoadViewOperation loadView(string $title, string $url)

加载Tab

Parameters

string $title
string $url

Return Value

LoadViewOperation

in UseInteraction at line 57
CopyOperation copy(string $title, $content)

复制

Parameters

string $title
$content

Return Value

CopyOperation

in UseInteraction at line 71
RequestOperation request(string $title, string $url)

请求

Parameters

string $title
string $url

Return Value

RequestOperation

in UseInteraction at line 87
BatchRequestOperation toolbar(string $title, string $url) deprecated

deprecated

请求

Parameters

string $title
string $url

Return Value

BatchRequestOperation

See also

batchRequest

in UseInteraction at line 98
BatchRequestOperation batchRequest(string $title, string $url)

请求

Parameters

string $title
string $url

Return Value

BatchRequestOperation

in UseInteraction at line 112
BatchIframeOperation batchIframe(string $title, string $url)

请求

Parameters

string $title
string $url

Return Value

BatchIframeOperation

in UseInteraction at line 126
PageOperation page(string $title, string $url)

页面

Parameters

string $title
string $url

Return Value

PageOperation

in UseInteraction at line 140
DropdownOperation dropdown(string $title, Closure $callable)

下拉操作项

Parameters

string $title
Closure $callable

Return Value

DropdownOperation

at line 25
Actions append(array|string $action) deprecated

deprecated 4.2

Append an action.

Parameters

array|string $action

Return Value

Actions

See also

add()

at line 30
void edit($url)

No description

Parameters

$url

Return Value

void

at line 35
void delete($url, $title)

No description

Parameters

$url
$title

Return Value

void

at line 42
void disable($url, $title, $status = '已启用')

No description

Parameters

$url
$title
$status

Return Value

void

at line 49
void enable($url, $title, $status = '已禁用')

No description

Parameters

$url
$title
$status

Return Value

void