FormFieldImageEstablish
class FormFieldImageEstablish extends FormWidget
Traits
Properties
protected string | $title | 表单标题 | from FormWidget |
protected Collection | $items | 表单内的表单条目集合 | from FormWidget |
protected array | $model | 模型数据 | from FormWidget |
protected Fluent | $attrs | 表单属性 | from FormWidget |
protected array | $buttons | 可用的按钮 | from FormWidget |
Methods
No description
No description
No description
表单域标签的宽度,例如 '50px'。 作为 Form 直接子元素的 form-item 会继承该值。 支持 auto
Generate items and append to form list
返回表单的结构 规则解析参考 : https://github.com/yiminghe/async-validator
Details
in
PoppyTrait at line 41
protected AuthManager
pyAuth()
get auth
in
PoppyTrait at line 50
protected Translator
pyTranslator()
get translator
in
PoppyTrait at line 60
protected Repository
pyConfig()
Get configuration instance.
in
PoppyTrait at line 70
protected DatabaseManager
pyDb()
get db
in
PoppyTrait at line 79
protected Kernel
pyConsole()
Get console instance.
in
PoppyTrait at line 88
protected Container
pyContainer()
Get IoC Container.
in
PoppyTrait at line 97
protected Mailer
pyMailer()
Get mailer instance.
in
PoppyTrait at line 106
protected SessionManager|Store
pySession()
Get session instance.
in
PoppyTrait at line 115
protected Request
pyRequest()
get request
in
PoppyTrait at line 125
protected Redirector
pyRedirector()
get redirector
in
PoppyTrait at line 134
protected Factory
pyValidation()
get validation
in
PoppyTrait at line 144
protected Dispatcher
pyEvent()
get event
in
PoppyTrait at line 154
protected LoggerInterface
pyLogger()
get logger
in
PoppyTrait at line 164
protected ResponseFactory
pyResponse()
get response
in
PoppyTrait at line 174
protected Filesystem
pyFile()
get file
in
PoppyTrait at line 184
protected UrlGenerator
pyUrl()
get url
in
PoppyTrait at line 195
protected mixed
pyCache(string $tag = '')
get cache
in
PoppyTrait at line 209
protected RedisManager
pyRedis()
get redis
in
PoppyTrait at line 218
protected Factory
pyView()
get view
in
PoppyTrait at line 227
protected Poppy
pyPoppy()
get poppy
in
PoppyTrait at line 236
protected Ini
pyIni()
Ini Parser
in
PoppyTrait at line 245
protected Xml
pyXml()
Ini Parser
in
PoppyTrait at line 254
protected Yaml
pyYaml()
Yaml Parser
in
UseWidgetUtil at line 15
protected bool
queryHas(string $type)
检测查询类型是否存在
in
UseWidgetUtil at line 29
protected string
queryAfter(string $type)
检测查询类型是否存在
in
FormWidget at line 134
__construct()
Form constructor.
at line 75
form()
No description
at line 12
handle()
No description
at line 20
array
data()
No description
in
FormWidget at line 156
labelWidth(string $width)
表单域标签的宽度,例如 '50px'。 作为 Form 直接子元素的 form-item 会继承该值。 支持 auto
in
FormWidget at line 165
FormWidget
disableReset()
Disable reset button.
in
FormWidget at line 176
FormWidget
disableSubmit()
Disable submit button.
in
FormWidget at line 187
FormWidget
inline()
行内表单模式, 取消自动宽度, 进行宽度自适应
in
FormWidget at line 200
FormWidget
disabled(bool $value)
是否禁用该表单内的所有组件。 若设置为 true,则表单内组件上的 disabled 属性不再生效
in
FormWidget at line 211
FormWidget
addItem(FormItem $item)
向服务器添加字段
in
FormWidget at line 221
Collection
items($type = '')
获取表单的所有字段
in
FormWidget at line 239
FormItem|$this
__call(string $method, array $arguments = [])
Generate items and append to form list
in
FormWidget at line 257
FormWidget
title(string $value)
设置表单的标题
in
FormWidget at line 268
JsonResponse|RedirectResponse|Resp|Response
resp()
返回表单的结构 规则解析参考 : https://github.com/yiminghe/async-validator
in
FormWidget at line 299
object|string
param($param)
获取路由参数
in
FormWidget at line 308
array
queryStruct()
查询结构
in
FormWidget at line 327
object
queryData()
查询数据
in
FormWidget at line 338
bool|MessageBag
validate(array $input = [])
Validate this form fields.
in
FormWidget at line 95
Text
text(mixed $name, mixed $label)
No description
in
FormWidget at line 95
Textarea
textarea(mixed $name, mixed $label)
No description
in
FormWidget at line 95
Url
url(mixed $name, mixed $label)
No description
in
FormWidget at line 95
Password
password(mixed $name, mixed $label)
No description
in
FormWidget at line 95
Mobile
mobile(mixed $name, mixed $label)
No description
in
FormWidget at line 95
Ip
ip(mixed $name, mixed $label)
No description
in
FormWidget at line 95
Decimal
decimal(mixed $name, mixed $label)
No description
in
FormWidget at line 95
Currency
currency(mixed $name, mixed $label)
No description
in
FormWidget at line 95
Email
email(mixed $name, mixed $label)
No description
in
FormWidget at line 95
Number
number(mixed $name, mixed $label)
No description
in
FormWidget at line 95
Radio
radio(mixed $name, mixed $label)
No description
in
FormWidget at line 95
Checkbox
checkbox(mixed $name, mixed $label)
No description
in
FormWidget at line 95
Select
select(mixed $name, mixed $label)
No description
in
FormWidget at line 95
MultiSelect
multiSelect(mixed $name, mixed $label)
No description
in
FormWidget at line 95
Tags
tags(mixed $name, mixed $label)
No description
in
FormWidget at line 95
Color
color(mixed $name, mixed $label)
No description
in
FormWidget at line 95
Year
year(mixed $name, mixed $label)
No description
in
FormWidget at line 95
Month
month(mixed $name, mixed $label)
No description
in
FormWidget at line 95
Date
date(mixed $name, mixed $label)
No description
in
FormWidget at line 95
Datetime
datetime(mixed $name, mixed $label)
No description
in
FormWidget at line 95
Time
time(mixed $name, mixed $label)
No description
in
FormWidget at line 95
DateRange
dateRange(mixed $name, mixed $label)
No description
in
FormWidget at line 95
MonthRange
monthRange(mixed $name, mixed $label)
No description
in
FormWidget at line 95
DatetimeRange
datetimeRange(mixed $name, mixed $label)
No description
in
FormWidget at line 95
TimeRange
timeRange(mixed $name, mixed $label)
No description
in
FormWidget at line 95
OnOff
onOff(mixed $name, mixed $label)
No description
in
FormWidget at line 95
Image
image(mixed $name, mixed $label)
No description
in
FormWidget at line 95
File
file(mixed $name, mixed $label)
No description
in
FormWidget at line 95
MultiImage
multiImage(mixed $name, mixed $label)
No description
in
FormWidget at line 95
MultiFile
multiFile(mixed $name, mixed $label)
No description
in
FormWidget at line 95
Editor
editor(mixed $name, mixed $label)
No description
in
FormWidget at line 95
Divider
divider(mixed $label)
No description
in
FormWidget at line 95
Code
code(mixed $name, mixed $label)
No description
in
FormWidget at line 95
Actions
actions(mixed $name, mixed $label)
No description