Download the PHP package dcat-x/form-step without Composer
On this page you can find all versions of the php package dcat-x/form-step. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download dcat-x/form-step
More information about dcat-x/form-step
Files in dcat-x/form-step
Download dcat-x/form-step
More information about dcat-x/form-step
Files in dcat-x/form-step
Vendor dcat-x
Package form-step
Short Description Dcat Admin multi-step form extension
License MIT
Homepage https://github.com/dcat-x/form-step
Package form-step
Short Description Dcat Admin multi-step form extension
License MIT
Homepage https://github.com/dcat-x/form-step
Please rate this library. Is it a good library?
Informations about the package form-step
功能特性
- 多步骤表单管理,支持任意数量步骤
- 单步验证,减少服务器请求
- 数据持久化,刷新页面不丢失数据
- 自定义完成页面
- 支持文件上传
- 响应式 UI 设计
安装
通过 Composer 安装:
然后在 Dcat Admin 后台启用扩展,或发布资源文件:
使用方法
基本用法
配置选项
自定义完成页面
步骤事件
步骤描述
API 参考
Builder 类
| 方法 | 说明 |
|---|---|
add($title, $callback) |
添加步骤 |
done($title, $callback) |
配置完成页面 |
width($width) |
设置容器宽度 |
padding($padding) |
设置内边距 |
remember($bool) |
启用/禁用数据记忆 |
select($index) |
选择初始步骤 |
shown($script) |
注册步骤显示事件 |
leaving($script) |
注册步骤离开事件 |
count() |
获取步骤数量 |
all() |
获取所有步骤 |
Form 类
| 方法 | 说明 |
|---|---|
setTitle($title) |
设置步骤标题 |
setDescription($desc) |
设置步骤描述 |
setIndex($index) |
设置步骤索引 |
shown($script) |
注册当前步骤显示事件 |
leaving($script) |
注册当前步骤离开事件 |
CompletionPage 类
| 方法 | 说明 |
|---|---|
title($title) |
获取/设置标题 |
contents($content) |
设置页面内容 |
input($key, $default) |
获取表单输入数据 |
getNewId() |
获取新创建的记录 ID |
form() |
获取表单实例 |
测试
代码风格
更新日志
请查看 CHANGELOG 了解版本更新信息。
贡献指南
请查看 CONTRIBUTING 了解如何参与贡献。
安全漏洞
如果发现安全漏洞,请查看 SECURITY 了解报告方式。
致谢
许可证
MIT License. 请查看 LICENSE 了解更多信息。
All versions of form-step with dependencies
PHP Build Version
Package Version
The package dcat-x/form-step contains the following files
Loading the files please wait ...