Added editing support to the View API (#2279)

* Added edit to view API

* Fixed listener deregistration bug
This commit is contained in:
Andrew Henry
2019-02-13 19:26:26 -08:00
committed by Pegah Sarram
parent d0ab59f9da
commit 853764d863
14 changed files with 123 additions and 66 deletions

View File

@@ -42,8 +42,13 @@ define([
let component;
return {
show: function (element) {
show: function (element, isEditing) {
component = new Vue({
data() {
return {
isEditing: isEditing
}
},
components: {
FlexibleLayoutComponent: FlexibleLayoutComponent.default
},
@@ -64,6 +69,9 @@ define([
type: 'flexible-layout'
};
},
onEditModeChange: function (isEditing) {
component.isEditing = isEditing;
},
destroy: function (element) {
component.$destroy();
component = undefined;