This commit is contained in:
Yuri Kuznetsov
2023-06-14 16:04:32 +03:00
parent db43fd3a12
commit ff34df3e42
3 changed files with 28 additions and 23 deletions
+2
View File
@@ -26,6 +26,8 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
/** @module views/dashlet */
import View from 'view'
/**
@@ -217,6 +217,13 @@ class BaseDashletView extends View {
return title;
}
/**
* @return {module:views/dashlet}
*/
getContainerView() {
return this.getParentView();
}
}
export default BaseDashletView;
+19 -23
View File
@@ -26,31 +26,27 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
define('views/dashlets/memo', ['views/dashlets/abstract/base'], (Dep) => {
import BaseDashletView from 'views/dashlets/abstract/base';
/**
* @class
* @name Class
* @memberOf module:views/dashlets/memo
* @extends module:views/dashlets/abstract/base.Class
*/
return Dep.extend(/** @lends module:views/dashlets/memo.Class# */{
class MemoDashletView extends BaseDashletView {
name: 'Iframe',
name = 'Memo'
templateContent:
`{{#if text}}
<div class="complex-text complex-text-memo">{{complexText text}}</div>{{/if}}
`,
templateContent = `
{{#if text}}
<div class="complex-text complex-text-memo">{{complexText text}}</div>
{{/if}}
`
data: function () {
return {
text: this.getOption('text'),
};
},
data() {
return {
text: this.getOption('text'),
};
}
afterAdding: function () {
this.getParentView().actionOptions();
},
});
});
afterAdding() {
this.getContainerView().actionOptions();
}
}
export default MemoDashletView;