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
Thought it would be good to add an example to the docs on how to allow bulk editing on a Model Admin interface. Adapting instructions from BlackDog, you end up with (where MyDataObject is the class the gridfield is showing)
class MyDataObjectAdminBulkManagerExtension extends Extension {
functionupdateEditForm(&$form) {
if($this->owner->modelClass == 'MyDataObject') {
//Update the automatically generated Model Admin interface with bulk editing capabilities$form->Fields()->fieldByName('MyDataObject')->getConfig()->addComponent(newGridFieldBulkManager());
}
}
}
and apply extension to relevant model admin instance via yml config with
Thought it would be good to add an example to the docs on how to allow bulk editing on a Model Admin interface. Adapting instructions from BlackDog, you end up with (where MyDataObject is the class the gridfield is showing)
and apply extension to relevant model admin instance via yml config with
The text was updated successfully, but these errors were encountered: