AnsweredAssumed Answered

How to add an action button to a subpanel?

Question asked by Robert Lehner on Jan 28, 2015
Latest reply on Sep 10, 2015 by Madhusudan Singh
Hi.
Im Working with PE6.5.20.
I want to add a subpanel action DELETE button like the edit and remove button.
So I add in the subpanel layout a new field :
  'delete_button' =>
  array (
    'widget_class' => 'SubPanelDeleteButton',
    'module' => 'MY_Module',
    'width' => '5%',
    'default' => true,
  ),

After the quickrepair nothing happens, in Logfile I got
 Bad subpanel definition, it has incorrect value for get_subpanel_data property

When I set is as link ('delete_link' =>....) I got the link displayed and working.
How can I get it as button?

Can anyone help me?

kindest regards Robert

Outcomes