mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
API CHANGE Renamed GridFieldDefaultColumns to GridFieldDataColumns #6921
This commit is contained in:
parent
8aa60c207f
commit
ef4425ce41
@ -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);
|
||||||
|
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user