WebbuildersGroup\GridField\ItemType\AddNewItemTypeButton
Synopsis
class AddNewItemTypeButton
implements
GridField_HTMLProvider
{
- // members
- protected $_targetFragment;
- protected $_buttonName;
- protected $_dropdownValues;
- protected $_rawDropdownValues;
- protected $_emptyLabel = NULL;
- protected $_default = NULL;
- // methods
- public void __construct()
- public {AddNewItemTypeButton} setButtonName()
- public {AddNewItemTypeButton} setEmptyLabel()
- public {array} getRawDropdownValues()
- public {array} getHTMLFragments()
Hierarchy
Implements
- SilverStripe\Forms\GridField\GridField_HTMLProvider
Members
protected
- $_default
- $_dropdownValues
- $_emptyLabel
- $_rawDropdownValues
- $_targetFragment
Methods
public
- __construct() — Target fragment to assign the button to
- getHTMLFragments() — Returns a map where the keys are fragment names and the values are pieces of HTML to add to these fragments.
- getRawDropdownValues() — Gets the dropdown values
- setButtonName() — Sets the name of the button
- setEmptyLabel() — Sets the empty option label