PHP code example of danbroooks / gridfield-selectexisting
1. Go to this page and download the library: Download danbroooks/gridfield-selectexisting library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
danbroooks / gridfield-selectexisting example snippets
$config = GridFieldConfig_RelationEditor::create(10)
->addComponent(new GridFieldSelectExisting());
GridField::create('Relationship', 'Relationship', $this->Relationship(), $config));