We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee9d6bc commit 6ae89c4Copy full SHA for 6ae89c4
README.md
@@ -71,6 +71,21 @@ Properties of `LinkColumn`:
71
- `url` - will be passed to `Url::to()`;
72
- `options` - HTML options of the `a` tag;
73
- `queryParams` - array of params added to `url`
74
+- `render` - custom render js function. E.g:
75
+```php
76
+//config ...
77
+ 'columns' => [
78
+ 'id',
79
+ //...
80
+ [
81
+ 'class' => 'nullref\datatable\LinkColumn',
82
+ 'render' => new JsExpression('function render(data, type, row, meta ){
83
+ return "<a href=\"/custom/url/"+row["id"]+"\">View</a>"
84
+ }'),
85
+ ],
86
87
+//...
88
+```
89
90
## Styling
91
0 commit comments