PHPackages                             phloxcz/forms-dropdownlist - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. phloxcz/forms-dropdownlist

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

phloxcz/forms-dropdownlist
==========================

Searchable DropDownList form control for Nette Framework with AJAX-powered Selection datasource.

v1.0.1(2mo ago)02↓90%MITPHPPHP &gt;=8.1

Since Mar 27Pushed 2mo agoCompare

[ Source](https://github.com/phloxcz/forms-dropdownlist)[ Packagist](https://packagist.org/packages/phloxcz/forms-dropdownlist)[ Docs](https://github.com/phloxcz/forms-dropdownlist)[ RSS](/packages/phloxcz-forms-dropdownlist/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (10)Versions (3)Used By (0)

phloxcz/forms-dropdownlist
==========================

[](#phloxczforms-dropdownlist)

Searchable **DropDownList** form control for [Nette Framework](https://nette.org) with AJAX-powered `Nette\Database\Table\Selection` datasource.

📖 **[Full documentation →](docs/README.md)**

---

Installation
------------

[](#installation)

```
composer require phloxcz/forms-dropdownlist
```

Include the assets in your base layout:

```

```

---

Quick start
-----------

[](#quick-start)

### 1. Register the DI extension

[](#1-register-the-di-extension)

```
# config/common.neon
extensions:
    dropdownlist: Phlox\Forms\DropDownList\DropDownListExtension
```

### 2. Add the control to your form

[](#2-add-the-control-to-your-form)

```
$form->addDropDownList('cityId', 'City', $this->link('searchCity!'))
     ->setSelection($this->database->table('cities'), 'id', 'name')
     ->setPlaceholder('Select city…')
     ->setTheme(DropDownListInput::THEME_BOOTSTRAP);
```

### 3. Handle the AJAX signal

[](#3-handle-the-ajax-signal)

```
public function handleSearchCity(string $q = ''): void
{
    $this->sendJson($this['cityForm']['cityId']->fetchData($q));
}
```

### 4. Pre-fill on edit pages

[](#4-pre-fill-on-edit-pages)

```
$form->setValues(['cityId' => $entity->cityId]);
// Label is resolved server-side – no extra AJAX on page load.
```

---

Themes
------

[](#themes)

ConstantFramework`DropDownListInput::THEME_DEFAULT`Framework-agnostic, uses CSS system colors`DropDownListInput::THEME_BOOTSTRAP`Bootstrap 5`DropDownListInput::THEME_TAILWIND`Tailwind CSS 3`array $classes`Custom class map---

License
-------

[](#license)

MIT © [Phlox](https://github.com/phloxcz)

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance82

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

2

Last Release

89d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e1c90a32c18492fe4ad47c3250ea60377f8d824ec2415b64e385c90979cb82c0?d=identicon)[phloxcz](/maintainers/phloxcz)

---

Tags

autocompletenetteajaxformselectdropdownlistnette-database

### Embed Badge

![Health badge](/badges/phloxcz-forms-dropdownlist/health.svg)

```
[![Health](https://phpackages.com/badges/phloxcz-forms-dropdownlist/health.svg)](https://phpackages.com/packages/phloxcz-forms-dropdownlist)
```

###  Alternatives

[ublaboo/datagrid

DataGrid for Nette Framework: filtering, sorting, pagination, tree view, table view, translator, etc

2972.0M24](/packages/ublaboo-datagrid)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
