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
Add "syfmony/security-bundle" to dependencies
Add "AddIf" option to columns
Add "AddIf" option to action buttons
Add .php-version with version 7.4
Add "attr" option to action buttons
| routeParams | array | array("id") | Array of property value names for the route parameters. By default is `id` set. |
439
-
| classNames | string | "" | CSS class names which added directly to the `a` element. Overrides default class names from YAML config. |
440
-
| additionalClassNames | string | "" | You can set default class names in YAML config. Then you can add additional class names to the button without override the default config. |
| routeParams | array |["id"]| Array of property value names for the route parameters. By default is `id` set. |
457
+
| classNames | string | "" | CSS class names which added directly to the `a` element. Overrides default class names from YAML config. |
458
+
| additionalClassNames | string | "" | You can set default class names in YAML config. Then you can add additional class names to the button without override the default config. |
459
+
| attr | array |[]| Array of any number of attributes formatted as HTML attributes. The array `["title" => "Show"]` is formatted as `title="Show"`. The `href` and `class` attributes are created by the other options and should not be defined here. |
460
+
| addIf | Closure |` function() {return true;}`| In this callback it is decided if the button will be rendered. |
Alternative you can of course create your HTML with JavaScript inside the formatter.
818
838
839
+
### Use Icons as action buttons
840
+
841
+
To save space in the table, it makes sense to use icons instead of written out buttons. This is easily possible by using HTML instead of a word in the ` displayName` option of the action buttons.
842
+
843
+
```php
844
+
// src/HelloTable/UserTable.php
845
+
846
+
class UserTable extends HelloBootstrapTable
847
+
{
848
+
...
849
+
850
+
protected function buildColumns(ColumnBuilder $builder, $options)
0 commit comments