You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| routeName | string | null |route name. This option is required. |
435
-
| routeParams | array |["id"]| Array of property value names for the route parameters. By default is `id` set. |
436
-
| attr | array |[]| Array of any number of attributes formatted as HTML attributes. The array `["class" => "btn btn-success"]` is formatted as `title="btn btn-success"`. |
434
+
| routeName | string | null |Route name. This option is required. |
435
+
| routeParams | array |[]| Array of route parameters. The key is the parameter of the route. The value is the property path. |
436
+
| attr | array |[]| Array of any number of attributes formatted as HTML attributes. The array `["class" => "btn btn-success"]` is formatted as `class="btn btn-success"`. |
437
437
438
438
#### Example
439
439
@@ -442,10 +442,32 @@ use HelloSebastian\HelloBootstrapTableBundle\Columns\LinkColumn;
'routeName' => 'show_department' // this option is required
445
+
'routeName' => 'show_department', // this option is required
446
+
'routeParams' => array(
447
+
'id' => 'department.id' // "id" is the route parameter of "show_department". "department.id" is the property path to fetch the value for the route parameter.
448
+
)
446
449
))
447
450
```
448
451
452
+
If the route parameters cannot be determined automatically based on the entity, user-defined routes can be created by overwriting `data`. Once `data` is overwritten, `routeName` and `routeParams` are no longer necessary to specify.
453
+
454
+
```php
455
+
use HelloSebastian\HelloBootstrapTableBundle\Columns\LinkColumn;
0 commit comments