DatatableBundle icon indicating copy to clipboard operation
DatatableBundle copied to clipboard

Inject Parameters into Multiple Route

Open dahomz opened this issue 6 years ago • 0 comments

Is it be possible for params to be injected in setMultiple so that the route can be built using them in twig?

ExampleController.php $dt->setMultiple( array( 'delete' => array( 'title' => 'delete', 'route' => 'delete', 'params' => array('id' => $id), ), ) )

multipleRaw.js.twig {% for key,item in multiple %} <option value="{{ path(item.route), item.params }}">{{ item.title }}</option> {% endfor %}

dahomz avatar Feb 24 '19 10:02 dahomz