Download the PHP package nepada/autocomplete-input without Composer
On this page you can find all versions of the php package nepada/autocomplete-input. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nepada/autocomplete-input
More information about nepada/autocomplete-input
Files in nepada/autocomplete-input
Package autocomplete-input
Short Description Autocomplete text input for Nette forms.
License BSD-3-Clause
Informations about the package autocomplete-input
Autocomplete text input
Installation
Via Composer:
Option A: install form container extension method via DI extension
It will register extension method addAutocomplete($name, $label, callable $dataSource): AutocompleteInput
to Nette\Forms\Container
.
Option B: use trait in your base form/container class
You can also use AutocompleteInputMixin
trait in your base form/container class to add method addAutocomplete($name, $label, callable $dataSource): AutocompleteInput
.
Example:
Usage
AutocompleteInput
is a standard text input from Nette enhanced with the autocomplete feature. The input exposes URL to retrieve the entries matching a specified query - you need to pass data source callback when creating the input:
Client side
The backend form control is not tightly coupled to any specific client side implementation. The rendered input contains data attributes with all the necessary settings:
If you do not want to roll out your own client side solution, try @nepada/autocomplete-input npm package.
All versions of autocomplete-input with dependencies
nette/application Version ^3.1.4@dev
nette/forms Version ^3.1@dev
nette/utils Version ^3.2@dev || ^4.0@dev