webchemistry/widgets

2.0 2017-05-27 18:17 UTC

This package is auto-updated.

Last update: 2024-04-08 21:31:39 UTC


README

Build Status

Installation

config.neon:

extensions:
	widgets: WebChemistry\Widgets\DI\WidgetsExtension

Registration

config.neon

widgets:
	firstWidget: FirstWidget
	secondWidget: # With multiplier
		multiplier: yes
		class: SecondWidget
	thirdWidget: @third # As service
	
services:
	third: ThirdWidget

Using

Presenter:

class BasePresenter extends Nette\Application\UI\Presenter {
	use WebChemistry\Widgets\Traits\TPresenter;

}

Template:

{widget firstWidget}
{widget secondWidget-1}
{widget secondWidget-2}
{widget thirdWidget}