added addExtraClass

I am not quiet sure if this is needed but if you want to only add the custom action to the GridField action menu than you need to add the extra classes otherwise it would add it to the action menu and to the gridfield.
This commit is contained in:
Greg808 2020-01-13 13:05:39 +01:00 committed by GitHub
parent 547ac6f2ce
commit 67725fe271
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -203,7 +203,9 @@ class GridFieldCustomAction implements GridField_ColumnProvider, GridField_Actio
'Custom action',
"docustomaction",
['RecordID' => $record->ID]
);
)->addExtraClass(
'action-menu--handled'
);
}
public function getExtraData($gridField, $record, $columnName)