Created
October 15, 2014 18:49
-
-
Save dmulvi/cb3fdf76c9938615d401 to your computer and use it in GitHub Desktop.
This file will modify the rowaction buttons on subpanels and add a delete button. The delete functionality must include subpanel-list.js file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); | |
$module = "YOUR_MODULE"; | |
$viewdefs[$module]['base']['view']['subpanel-list'] = array( | |
'template' => 'recordlist', | |
'favorite' => true, | |
'rowactions' => array( | |
'actions' => array( | |
array( | |
'type' => 'rowaction', | |
'name' => 'edit_button', | |
'icon' => 'icon-pencil', | |
'label' => 'LBL_EDIT_BUTTON', | |
'event' => 'list:editrow:fire', | |
'acl_action' => 'edit', | |
'allow_bwc' => true, | |
), | |
array( | |
'type' => 'rowaction', | |
'css_class' => 'btn', | |
'event' => 'list:preview:fire', | |
'icon' => 'icon-eye-open', | |
'label' => ' Preview', | |
'acl_action' => 'view', | |
'allow_bwc' => false, | |
), | |
array( | |
'type' => 'rowaction', | |
'css_class' => 'btn', | |
'event' => 'list:delete:fire', | |
'icon' => 'icon-trash', | |
'label' => ' Delete', | |
'acl_action' => 'delete', | |
'allow_bwc' => false, | |
), | |
), | |
), | |
'last_state' => array( | |
'id' => 'subpanel-list', | |
), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment