surda / search
Search control for Nette Framework
v1.4.0
2023-01-04 10:52 UTC
Requires
- php: >=7.1
- nette/di: ^3.0
- nette/forms: ^3.0
- surda/themeable-controls: ^1.0
Requires (Dev)
- nette/tester: ^2.0
- ninjify/nunjuck: ^0.3
- phpstan/phpstan: ^0.12
- phpstan/phpstan-deprecation-rules: ^0.12
- phpstan/phpstan-nette: ^0.12
- phpstan/phpstan-strict-rules: ^0.12
README
Installation
The recommended way to is via Composer:
composer require surda/search
After that you have to register extension in config.neon:
extensions: search: Surda\Search\DI\SearchExtension
Configuration
Default
search: templates: default: bootstrap4.default.latte autocomplete: 'on'
Usage
Presenter
use Nette\Application\UI\Presenter; use Surda\Search\TSearch; class ProductPresenter extends Presenter { use TSearch; public function actionDefault(): void { $text = $this->search; ... } }
Template
{control search}