Added a button, but did not understand how to make it to open a link in a new window.
Help me to understand
Espo.define('crm:views/account/detail', 'views/detail', function (Dep) {
return Dep.extend({
setup: function () {
Dep.prototype.setup.call(this);
this.menu.buttons.push({
'label': 'Test',
'style' : 'default',
'link': 'https://ya.ru',
'iconHtml': '<span class="glyphicon glyphicon-th-list"></span>'
});
},
relatedAttributeMap: {
'contacts': {
'billingAddressCity': 'addressCity',
'billingAddressStreet': 'addressStreet',
'billingAddressPostalCode': 'addressPostalCode',
'billingAddressState': 'addressState',
'billingAddressCountry': 'addressCountry',
'id': 'accountId',
'name': 'accountName'
}
}
});
});
Help me to understand
Espo.define('crm:views/account/detail', 'views/detail', function (Dep) {
return Dep.extend({
setup: function () {
Dep.prototype.setup.call(this);
this.menu.buttons.push({
'label': 'Test',
'style' : 'default',
'link': 'https://ya.ru',
'iconHtml': '<span class="glyphicon glyphicon-th-list"></span>'
});
},
relatedAttributeMap: {
'contacts': {
'billingAddressCity': 'addressCity',
'billingAddressStreet': 'addressStreet',
'billingAddressPostalCode': 'addressPostalCode',
'billingAddressState': 'addressState',
'billingAddressCountry': 'addressCountry',
'id': 'accountId',
'name': 'accountName'
}
}
});
});
Comment