neo.mjs 4.3.33 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/layout/Base.mjs
CHANGED
@@ -60,6 +60,39 @@ class Base extends CoreBase {
|
|
60
60
|
*/
|
61
61
|
applyRenderAttributes() {}
|
62
62
|
|
63
|
+
/**
|
64
|
+
*
|
65
|
+
*/
|
66
|
+
destroy() {
|
67
|
+
let me = this;
|
68
|
+
|
69
|
+
me.bind && Neo.getComponent(me.containerId).getModel()?.removeBindings(me.id);
|
70
|
+
|
71
|
+
super.destroy();
|
72
|
+
}
|
73
|
+
|
74
|
+
/**
|
75
|
+
* Returns the container model or its closest parent model
|
76
|
+
* @param {String} [ntype]
|
77
|
+
* @returns {Neo.model.Component|null}
|
78
|
+
*/
|
79
|
+
getModel(ntype) {
|
80
|
+
return Neo.getComponent(this.containerId).getModel();
|
81
|
+
}
|
82
|
+
|
83
|
+
/**
|
84
|
+
* Applies all class configs to this instance
|
85
|
+
* @param {Object} config
|
86
|
+
* @param {Boolean} [preventOriginalConfig] True prevents the instance from getting an originalConfig property
|
87
|
+
*/
|
88
|
+
initConfig(config, preventOriginalConfig) {
|
89
|
+
super.initConfig(config, preventOriginalConfig);
|
90
|
+
|
91
|
+
let me = this;
|
92
|
+
|
93
|
+
me.bind && Neo.getComponent(me.containerId).getModel()?.parseConfig(me);
|
94
|
+
}
|
95
|
+
|
63
96
|
/**
|
64
97
|
* Placeholder method
|
65
98
|
* @param {Neo.component.Base} item
|