Open ceponcet opened 1 month ago
In order to be consistent with existing method names, I suggest to rename addDisplayOnPage(string $pageName)
into onlyOn(string $pageName)
+ another hideOn(string $pageName)
A workaround for now should be:
public function configureFields(string $pageName): iterable
{
if ('CSV' == $pageName) {
yield TextField::new('field');
}
}
Short description of what this feature will allow to do: Add
addDisplayOnPage(string $pageName)
insrc/Field/FieldTrait.php
Adding the
addDisplayOnPage(string $pageName)
method to thesrc/Field/FieldTrait.php
trait allows adding a field to a "page" other than EDIT INDEX DETAIL NEW. These other pages can be, for example, CSV or WHATEVER.Example of how to use this feature