Last active
September 4, 2015 11:07
-
-
Save cAstraea/e89242ae3fda6e211ab8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
({ | |
extendsFrom: 'SubpanelListView', | |
initialize: function(options){ | |
this._super('initialize', [options]); | |
this.context.on('list:editrow:fire',this.drawerEditClicked, this); | |
}, | |
drawerEditClicked: function(model){ | |
console.log(model); | |
}, | |
_dispose: function() { | |
this._super('_dispose'); | |
}, | |
}); |
This file contains hidden or 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'); | |
/* | |
* Your installation or use of this SugarCRM file is subject to the applicable | |
* terms available at | |
* http://support.sugarcrm.com/06_Customer_Center/10_Master_Subscription_Agreements/. | |
* If you do not agree to all of the applicable terms or do not have the | |
* authority to bind the entity as an authorized representative, then do not | |
* install or use this SugarCRM file. | |
* | |
* Copyright (C) SugarCRM Inc. All rights reserved. | |
*/ | |
$module="Accounts"; | |
$viewdefs[$module]['base']['view']['subpanel-list'] = array( | |
'template' => 'recordlist', | |
'favorite' => true, | |
'rowactions' => array( | |
'actions' => array( | |
array( | |
'type' => 'rowaction', | |
'css_class' => 'btn', | |
'tooltip' => 'LBL_PREVIEW', | |
'event' => 'list:preview:fire', | |
'icon' => 'fa-eye', | |
'acl_action' => 'view', | |
'allow_bwc' => false, | |
), | |
array( | |
'type' => 'rowaction', | |
'name' => 'edit_button', | |
'icon' => 'fa-pencil', | |
'label' => 'LBL_EDIT_BUTTON', | |
'event' => 'list:editrow:fire', | |
'acl_action' => 'edit', | |
'allow_bwc' => true, | |
), | |
array( | |
'type' => 'unlink-action', | |
'icon' => 'fa-chain-broken', | |
'label' => 'LBL_UNLINK_BUTTON', | |
), | |
), | |
), | |
'last_state' => array( | |
'id' => 'subpanel-list', | |
), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment