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,6 +203,8 @@ class GridFieldCustomAction implements GridField_ColumnProvider, GridField_Actio
'Custom action', 'Custom action',
"docustomaction", "docustomaction",
['RecordID' => $record->ID] ['RecordID' => $record->ID]
)->addExtraClass(
'action-menu--handled'
); );
} }