WebbuildersGroup\GridField\ItemType\AddNewItemTypeButton::__construct
Target fragment to assign the button to
Signature
public function __construct(array
$dropdownValues,
[string
$targetFragment = 'before',
[{string}
$emptyLabel = NULL,
[{string}
$default = NULL]]] )
Parameters
$dropdownValues
—
array
$targetFragment
—
string
- Target fragment to place the button in
$emptyLabel
—
object
- Label for empty option, leave null to exclude
$default
—
object
- The default value to select