diff --git a/doc/actions.rst b/doc/actions.rst index b752cc699f..430bc1a027 100644 --- a/doc/actions.rst +++ b/doc/actions.rst @@ -265,7 +265,7 @@ the ``Action`` class constructor:: // that the label is autogenerated from the name (e.g. 'viewInvoice' -> 'View Invoice') $viewInvoice = Action::new('viewInvoice', null); // set the label to FALSE to not display any label for this action (but make sure - // to display an icon for the action; otherwise users won't see it) + // to display an icon for the action; otherwise users can't see or click on the action) $viewInvoice = Action::new('viewInvoice', false); // the third optional argument is the full CSS class of a FontAwesome icon diff --git a/doc/fields.rst b/doc/fields.rst index f4908896b1..f264177215 100644 --- a/doc/fields.rst +++ b/doc/fields.rst @@ -641,19 +641,35 @@ some fields define additional config options, as shown in the Label Options ~~~~~~~~~~~~~ -The second optional argument of the field constructors is the label:: - - // not defining the label explicitly or setting it to NULL means - // that the label is autogenerated (e.g. 'firstName' -> 'First Name') +The second optional argument of the field constructors is the label, which can +take many different values: + +* If you **don't set the label** explicitly, EasyAdmin generates the label + automatically based on the field name (e.g. 'firstName' -> 'First Name'); +* **null**: EasyAdmin generates the label automatically based on the field name + (e.g. 'firstName' -> 'First Name'); +* **An empty string**: the field doesn't display any label, but and empty + ``