class Interactions implements Structable

Traits

Properties

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

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)

进度

struct()

No description

Jsonable
call(Closure $callback)

调用函数

Details

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

at line 21
struct()

No description

at line 37
Jsonable call(Closure $callback)

调用函数

Parameters

Closure $callback

Return Value

Jsonable