Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/webchemistry/widgets
Dynamic and global components in Nette. Configurable out of presenters.
https://github.com/webchemistry/widgets
component widget widgets
Last synced: about 1 month ago
JSON representation
Dynamic and global components in Nette. Configurable out of presenters.
- Host: GitHub
- URL: https://github.com/webchemistry/widgets
- Owner: WebChemistry
- Created: 2016-02-04T22:20:48.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-08T13:42:39.000Z (over 7 years ago)
- Last Synced: 2024-04-20T04:42:46.817Z (9 months ago)
- Topics: component, widget, widgets
- Language: PHP
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/WebChemistry/widgets.svg?branch=master)](https://travis-ci.org/WebChemistry/widgets)
## Installation
config.neon:
```yaml
extensions:
widgets: WebChemistry\Widgets\DI\WidgetsExtension
```## Registration
config.neon
```yaml
widgets:
firstWidget: FirstWidget
secondWidget: # With multiplier
multiplier: yes
class: SecondWidget
thirdWidget: @third # As service
services:
third: ThirdWidget
```## Using
Presenter:
```php
class BasePresenter extends Nette\Application\UI\Presenter {
use WebChemistry\Widgets\Traits\TPresenter;}
```Template:
```html
{widget firstWidget}
{widget secondWidget-1}
{widget secondWidget-2}
{widget thirdWidget}
```