API CHANGE Renamed GridFieldDefaultColumns to GridFieldDataColumns #6921

This commit is contained in:
Stig Lindqvist 2012-03-09 14:08:12 +13:00
parent 8aa60c207f
commit ef4425ce41
2 changed files with 6 additions and 6 deletions

View File

@ -39,11 +39,11 @@ class Company extends DataObject {
$config = new GridFieldConfig(); $config = new GridFieldConfig();
$config->addComponent(new GridFieldAddExistingAutocompleter('Name')); $config->addComponent(new GridFieldAddExistingAutocompleter('Name'));
$config->addComponent(new GridFieldDefaultColumns()); $config->addComponent(new GridFieldDataColumns());
$config->addComponent(new GridFieldSortableHeader()); $config->addComponent(new GridFieldSortableHeader());
$config->addComponent(new GridFieldPaginator()); $config->addComponent(new GridFieldPaginator());
$config->addComponent(new GridFieldDeleteAction()); $config->addComponent(new GridFieldDeleteAction());
$config->addComponent(new GridFieldRemoveButton()); $config->addComponent(new GridFieldDeleteAction(true));
$config->addComponent(new GridFieldDetailForm()); $config->addComponent(new GridFieldDetailForm());
$gridField = new GridField('Employees', 'Employees', $this->Employees(), $config); $gridField = new GridField('Employees', 'Employees', $this->Employees(), $config);

View File

@ -32,7 +32,7 @@ class GridFieldTestPage extends Page {
$fields = parent::getCMSFields(); $fields = parent::getCMSFields();
$config = new GridFieldConfig(); $config = new GridFieldConfig();
$config->addComponent(new GridFieldDefaultColumns()); $config->addComponent(new GridFieldDataColumns());
$config->addComponent(new GridFieldSortableHeader()); $config->addComponent(new GridFieldSortableHeader());
$config->addComponent(new GridFieldPaginator); $config->addComponent(new GridFieldPaginator);
$config->addComponent(new GridFieldFilterHeader()); $config->addComponent(new GridFieldFilterHeader());
@ -43,7 +43,7 @@ class GridFieldTestPage extends Page {
$fields->addFieldToTab('Root.NoRelation', $grid); $fields->addFieldToTab('Root.NoRelation', $grid);
$config = new GridFieldConfig(); $config = new GridFieldConfig();
$config->addComponent(new GridFieldDefaultColumns()); $config->addComponent(new GridFieldDataColumns());
$config->addComponent(new GridFieldSortableHeader()); $config->addComponent(new GridFieldSortableHeader());
$config->addComponent(new GridFieldPaginator); $config->addComponent(new GridFieldPaginator);
$config->addComponent(new GridFieldFilterHeader()); $config->addComponent(new GridFieldFilterHeader());
@ -54,7 +54,7 @@ class GridFieldTestPage extends Page {
$fields->addFieldToTab('Root.HasMany', $grid); $fields->addFieldToTab('Root.HasMany', $grid);
$config = new GridFieldConfig(); $config = new GridFieldConfig();
$config->addComponent(new GridFieldDefaultColumns()); $config->addComponent(new GridFieldDataColumns());
$config->addComponent(new GridFieldSortableHeader()); $config->addComponent(new GridFieldSortableHeader());
$config->addComponent(new GridFieldPaginator); $config->addComponent(new GridFieldPaginator);
$config->addComponent(new GridFieldFilterHeader()); $config->addComponent(new GridFieldFilterHeader());
@ -87,7 +87,7 @@ class GridFieldTestPage_Controller extends Page_Controller {
*/ */
public function Form(){ public function Form(){
$config = new GridFieldConfig(); $config = new GridFieldConfig();
$config->addComponent(new GridFieldDefaultColumns()); $config->addComponent(new GridFieldDataColumns());
$config->addComponent(new GridFieldSortableHeader()); $config->addComponent(new GridFieldSortableHeader());
$config->addComponent(new GridFieldPaginator); $config->addComponent(new GridFieldPaginator);
$config->addComponent(new GridFieldFilterHeader()); $config->addComponent(new GridFieldFilterHeader());