mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
547ac6f2ce
commit
67725fe271
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user