nextras/forms

此包已被废弃,不再维护。未建议替代包。

Nette 框架的表单组件。

v2.0.5 2017-10-31 10:00 UTC

README

====================

此仓库已弃用。
当前版本适用于 Nette 2.2。
对于 Nette 3.0+,请参阅新的仓库 nextras/form-componentsnextras/forms-rendering

====================

Build Status Downloads this Month Stable version Code coverage

组件列表

  • DatePicker - 日期选择器,由 DateTime 对象表示
  • DateTimePicker - 日期时间选择器,由 DateTime 对象表示
  • Typeahead - 表单的最佳自动完成功能
  • BS3InputMacros - Bootstrap 3 的输入宏(添加一些 CSS 类)
  • Bs3FormRenderer - 在 Bootstrap 3 设计中快速渲染表单
  • Bs4FormRenderer - 在 Bootstrap 4 设计中快速渲染表单
  • ComponentControl - 包含 Component 接口和可能具有自己模板的表单控件,接收信号并渲染片段;

安装

最佳安装方式是使用 Composer

$ composer require nextras/forms

对于日期(时间)选择器,我们推荐使用 Bootstrap 的 DateTime Picker。请参阅 JS 初始化脚本。

文档

在您的 config.neon 中添加

extensions:
    nextras.form: Nextras\Forms\Bridges\NetteDI\FormsExtension