abstract class Action implements Structable

Properties

protected bool $disabled 禁用
protected bool $plain 朴素模式
protected bool $circle 圆形
protected string $type 按钮的类型
protected string $size 大小
protected string $icon icon
protected bool $only

是否只显示 ICON

$link 文字模式
protected bool $confirm 是否进行请求前确认
protected string $method 请求方法
protected string $url 请求的Url

Methods

__construct($title, $url)

创建 Action

icon(string $icon)

设置 ICON 图标

confirm(string $text = '')

确认

__call($method, $args)

No description

struct()

可结构化并返回

self
primary()

主要按钮

self
link()

链接按钮

self
default()

默认样式

self
success()

成功

self
info()

信息

self
warning()

警告

self
danger()

危险

self
disabled()

禁用

self
plain()

朴素模式

self
circle()

原型模式

self
only()

仅仅显示图标

Details

at line 106
__construct($title, $url)

创建 Action

Parameters

$title
$url

at line 117
Action icon(string $icon)

设置 ICON 图标

Parameters

string $icon

ICON 图标

Return Value

Action

at line 128
Action confirm(string $text = '')

确认

Parameters

string $text

Return Value

Action

at line 138
__call($method, $args)

No description

Parameters

$method
$args

at line 162
struct()

可结构化并返回

at line 21
self primary()

主要按钮

Return Value

self

链接按钮

Return Value

self

at line 21
self default()

默认样式

Return Value

self

at line 21
self success()

成功

Return Value

self

at line 21
self info()

信息

Return Value

self

at line 21
self warning()

警告

Return Value

self

at line 21
self danger()

危险

Return Value

self

at line 21
self disabled()

禁用

Return Value

self

at line 21
self plain()

朴素模式

Return Value

self

at line 21
self circle()

原型模式

Return Value

self

at line 21
self only()

仅仅显示图标

Return Value

self