Source of file GridFieldConfig_SortableEditableInline.php
Size: 0,608 Bytes - Last Modified: 2021-12-24T06:33:51+00:00
/var/www/docs.ssmods.com/process/src/app/src/GridField/GridFieldConfig_SortableEditableInline.php
1234567891011121314151617181920 | <?php namespace XD\Basic\GridField; use SilverStripe\Forms\GridField\GridFieldAddNewButton; use Symbiote\GridFieldExtensions\GridFieldAddNewInlineButton; /** * Class GridFieldConfig_SortableEditableInline * @package XD\Basic\GridField */ class GridFieldConfig_SortableEditableInline extends GridFieldConfig_SortableEditable { public function __construct($itemsPerPage = null, $sortField = 'Sort') { parent::__construct($itemsPerPage, $sortField); $this->removeComponentsByType(new GridFieldAddNewButton()); $this->addComponent(new GridFieldAddNewInlineButton()); } } |