SilverCart\Admin\Forms\GridField\GridFieldConfig_HasOnlyOneEditor
Similar to {@link SilverStripe\Forms\GridField\GridFieldConfig_RelationEditor}, but allows add buttons only when there's no related component already.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class GridFieldConfig_HasOnlyOneEditor
extends GridFieldConfig
{
- // methods
- public void __construct()
- public void enableAddSection()
- // Inherited methods from GridFieldConfig
- public static void convert_to_readonly()
Hierarchy
Methods
public
- __construct() — Loads the components, sets default properties.
- enableAddSection() — Enables the add buttons for relations.
Inherited from SilverCart\Admin\Forms\GridField\GridFieldConfig
public
- convert_to_readonly() — Converts a GridField into a read only one.