Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
uniun committed Jan 14, 2015
1 parent b9089d2 commit 739d183
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ override getEditForm() method like this:
->Fields()
->fieldByName($this->sanitiseClassName($this->modelClass))
->getConfig()
->removeComponentsByType('GridFieldEditButton')
->removeComponentsByType('GridFieldDeleteAction')
->addComponent(new GridFieldCopyButton())
->addComponent(new GridFieldEditButton())
->addComponent(new GridFieldDeleteAction())
->addComponent(new GridFieldCopyButton(), 'GridFieldEditButton') // or just ->addComponent(new GridFieldCopyButton())
;

return $form;
Expand All @@ -49,4 +45,4 @@ DataObject and writing all the actions in the onAfterDuplicate() method.
DB::query("delete from Member_SomeObject where SomeObjectID = ".$this->owner->ID);
}

}
}

0 comments on commit 739d183

Please sign in to comment.