Componette

Componette

nextras

nextras / forms v2.0.5

[DEPRECATED] Form controls for Nette Framework

download-cloud-line composer require nextras/forms

Nextras Forms

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

This repository is deprecated.
Current releases work for Nette 2.2.
For Nette 3.0+ see new repositories nextras/form-components and nextras/forms-rendering.

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

Build Status Downloads this Month Stable version Code coverage

List of components:

  • DatePicker - date picker, represented by DateTime object
  • DateTimePicker - date & time picker, represented by DateTime object
  • Typeahead - the best autocomplete for your forms
  • BS3InputMacros - input macros for Bootstrap 3 (adds some css classes)
  • Bs3FormRenderer - renders forms quicky in Bootstrap 3 design
  • Bs4FormRenderer - renders forms quicky in Bootstrap 4 design
  • ComponentControl - form's control which contains Component interface and my have own template, receive signals & render snippets;

Installation

The best way to install is using Composer:

$ composer require nextras/forms

For Date(Time)Picker we recommend use DateTime Picker for Bootstrap. See JS init script.

Documentation

Add in your config.neon:

extensions:
    nextras.form: Nextras\Forms\Bridges\NetteDI\FormsExtension
  • v2.0.5 2.0.5

    New patch version 2.0.5 is out! ๐ŸŒ

    Changes:

  • v2.0.4 2.0.4

    New patch version 2.0.4 is out! ๐ŸŽ

    Changes:

    • fixed regression from 2.0.2 when added RadioList wrapper, now it's not correctly added in partial rendering mode
    • see full commit changelog
  • v2.0.3 2.0.3

    New patch version 2.0.3 is out! ๐Ÿ

    Changes:

  • v2.0.2 2.0.2

    New patch version 2.0.2 is out! ๐Ÿ

    Changes:

    • do not strip JS validation data in DateTimePicker
    • added definition as npm package, thanks @trejjam
    • added support for DateTimeInterface in DateTimePicker, thanks Frantisek Vesely
    • fixed date time picker detection & fixed MS Edge , thanks @Vlczech
    • Bs3Renderer: fixed rendering radio buttons
    • Bs3Macros: fixed rendering in included template - fixed compatibility with Nette 2.4
    • see full commit changelog
  • v2.0.1 2.0.1

    New patch version 2.0.1 is out! ๐ŸŒ

    Changes:

    • fixed ComponentControl & calling attached method for BaseControl & trait.
    • see full commit changelog
  • v2.0.0 2.0.0

    We are proud to release stable version 2.0.0 with full support for Nette 2.4 ๐Ÿ‡.

    Changes:

    • removed OptionList & MultiOptionList, which are currently well supported in Nette itself (BC BREAK!)
    • minimal PHP version is 5.6, minimal Nette version is 2.4 (BC BREAK!)
    • changed namespace of FormsExtension to Nextras\Forms\Bridges\NetteDI (BC BREAK!)
    • updated & fixed snippet support for ComponentControl
    • fixed support for Nette 2.4
    • see full commit changelog
  • v2.0.0-rc1 2.0.0 RC1

    • removed OptionList & MultiOptionList, which are currently well supported in Nette itself (BC BREAK!)
    • minimal PHP version is 5.6, minimal Nette version is 2.4 (BC BREAK!)
    • changed namespace of FormsExtension to Nextras\Forms\Bridges\NetteDI (BC BREAK!)
    • updated & fixed snippet support for ComponentControl
    • fixed support for Nette 2.4
  • v1.6.2 1.6.2

    • improved: error message styling in Bs3FormRenderer, thanks @pavelkouril
    • fix: DateTimePicker regular expression fix, thanks @redwormik
    • fix: Bs3InputMacros compatibility with Nette Utils 2.4
  • v1.6.1 1.6.1

    • fix: TemplateControlTrait: fixed template initialization in beforeRender
    • fix: Bs3FormRenderer: fixed miskey for form's primary button
  • v1.6.0 1.6.0

    • BC break - BaseInputMacros::input and ::label have new 3rd parameter (eb2a13d)
    • fixed: Bootstrap 3 macros: adding control-label class only to general input label (e34aacf)
  • v1.5.0 1.5.0

    • Bs3FormRenderer: added support for inline radio list (thanks @jtojnar)
    • Bs3FormRenderer: added option to set the primary button (thanks @jtojnar) [https://github.com/nextras/forms/commit/03e42aaf5967548b6337fd174200f41f129d0db3]
    • FormsExtension: added (thanks @TomasVotruba)
    • allowed php7 (yay ๐Ÿ‡)
    • full commit changelog
Componette Componette felix@nette.org