Componette

Componette

nextras

nextras / form-components v2.0.0

Form components for Nette Framework (architecture & UI components)

download-cloud-line composer require nextras/form-components

Nextras Form Components

Build Downloads this Month Stable version Code coverage

This package provides architecture and UI components for building Nette forms.

Architecture components provide Nette Forms' BaseControl in two flavors:

  • BaseControl that inherits from Nette\Application\UI\Component - form control with support for signal & state handling;
  • BaseControl that inherits from Nette\Application\UI\Control - form control with support for template rendering + same feature as in UI\Component;

UI components:

  • AutocompleteControl - text input with support for autocomplete signal handling;
  • DateControl - date picker - text input returning DateTimeImmutable instance;
  • DateTimeControl - date tiime picker - text input returning DateTimeImmutable instance;

Installation

The best way to install is using Composer:

$ composer require nextras/form-components

Documentation

See examples directory.

License

Combined MIT and Nette's . See full license.

  • v2.0.0 v2.0.0

    What's Changed

    • add return type for getValue() to be compatible with parent by @Ciki in #10
    • skip the warning trigger that component is not intended to be used in the Presenter
    • make rules protected to be able to override them

    Full Changelog: v1.1.2...v2.0.0

  • v1.1.2 1.1.2

    What's Changed

    • support nette/utils 4.0 by @Ciki in #9

    Full Changelog: v1.1.1...v1.1.2

  • v1.1.1 1.1.1

    What's Changed

    • disable autocomplete by @Ciki in #6

    Full Changelog: v1.1.0...v1.1.1

  • v1.1.0 v1.1.0

    This is next minor release. ๐Ÿ›

    Changes:

    • implemented better support for MIN, MAX validation rules, thanks @Ciki (#5)
  • v1.0.0 1.0.0

    This is first release of nextras/forms spin-off for Nette 3.0 ๐ŸŽ

    Changes:

    • reimplemented for Nette Framework 3.0
    • changed architecture - now components inherit from Nette\ComponentModel\Component and form's functionality is reimplemented by traits (BC break!)
Componette Componette felix@nette.org