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
By default, the column/filter/action/exporter labels are inherited from the name, e.g. "firstName" will result in "First name". In some cases it may be useful to change this behavior, so adding label strategies like the SonataAdmin does would be cool.
Example strategies (just ideas for now):
sentence - current behavior, e.g. "firstName" becomes "First name", for simple applications;
snake - "firstName" -> "first_name", for more complex applications using i18n;
format - requires a format string supported by sprintf, e.g. "data_table.%s"
chain - allows usage of multiple strategies;
noop - "firstName" -> "firstName" (string not modified);
For now, the label strategy should be configurable for the data table from its options, for example:
By default, the column/filter/action/exporter labels are inherited from the name, e.g. "firstName" will result in "First name". In some cases it may be useful to change this behavior, so adding label strategies like the SonataAdmin does would be cool.
Example strategies (just ideas for now):
For now, the label strategy should be configurable for the data table from its options, for example:
With above configuration, the "firstName" column would use the "data_table.first_name" label by default.
This could be easily configured for the whole application by using an extension:
The text was updated successfully, but these errors were encountered: