dev-master
9999999-devWidget management component based on Twitter Bootstrap and jQuery UI (draggable)
proprietary
The Requires
v0.1
0.1.0.0Widget management component based on Twitter Bootstrap and jQuery UI (draggable)
proprietary
The Requires
Wallogit.com
2017 © Pedro Peláez
Widget management component based on Twitter Bootstrap and jQuery UI (draggable)
This is implementation of widget managing control based on clear01/nette-widgets
using Twitter Bootstrap and jQuery UI., (*1)
See clear01/nette-widgets documentation for more details about the widgets extension itself., (*2)
$ composer require clear01/bootstrap-nette-widget-control
Step 2: Add extension to config and configure it.
See clear01/nette-widgets package documentation.
Make sure you have implemented (or used an existing) persistence layer., (*3)
Step 3: Configure your asset manager to load Twitter Bootstrap and jQuery UI. Include also assets/widgets.css from this package., (*4)
Step 4: Feel free to use the \Clear01\Widgets\Nette\UI\TwitterBootstrap\BootstrapWidgetControl component. There is also \Clear01\Widgets\Nette\UI\TwitterBootstrap\IBootstrapWidgetControlFactory factory interface included. See example below:, (*5)
config.neon, (*6)
services:
...
- \Clear01\Widgets\Nette\UI\TwitterBootstrap\IBootstrapWidgetControlFactory
...
YourPresenter.php, (*7)
class YourPresenter {
/**
* @var \Clear01\Widgets\Nette\UI\TwitterBootstrap\IBootstrapWidgetControlFactory
* @inject
*/
public $bootstrapWidgetControlFactory;
protected function createComponentWidgetControl() {
return $this->bootstrapWidgetControlFactory->create();
}
}
template.latte, (*8)
{control widgetControl}
Widget management component based on Twitter Bootstrap and jQuery UI (draggable)
proprietary
Widget management component based on Twitter Bootstrap and jQuery UI (draggable)
proprietary