Action
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 |
|
protected bool | $link | 文字模式 | |
protected bool | $confirm | 是否进行请求前确认 | |
protected string | $method | 请求方法 | |
protected string | $url | 请求的Url |
Methods
__construct($title, $url)
创建 Action
__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
at line 117
Action
icon(string $icon)
设置 ICON 图标
at line 128
Action
confirm(string $text = '')
确认
at line 138
__call($method, $args)
No description
at line 162
struct()
可结构化并返回
at line 21
self
primary()
主要按钮
at line 21
self
link()
链接按钮
at line 21
self
default()
默认样式
at line 21
self
success()
成功
at line 21
self
info()
信息
at line 21
self
warning()
警告
at line 21
self
danger()
危险
at line 21
self
disabled()
禁用
at line 21
self
plain()
朴素模式
at line 21
self
circle()
原型模式
at line 21
self
only()
仅仅显示图标