mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Update 04_GridField.md
This commit is contained in:
parent
eae3d0cfaa
commit
907fead4ac
@ -89,7 +89,7 @@ class Page extends SiteTree
|
|||||||
// Consult the API documentation for each component to determine the configuration
|
// Consult the API documentation for each component to determine the configuration
|
||||||
// you can do.
|
// you can do.
|
||||||
//
|
//
|
||||||
$dataColumns = $config->getComponentByType('GridFieldDataColumns');
|
$dataColumns = $config->getComponentByType(GridFieldDataColumns::class);
|
||||||
|
|
||||||
$dataColumns->setDisplayFields([
|
$dataColumns->setDisplayFields([
|
||||||
'Title' => 'Title',
|
'Title' => 'Title',
|
||||||
|
Loading…
Reference in New Issue
Block a user