@aurigma/design-atoms-model
Version:
Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.
30 lines • 1.01 kB
JavaScript
import { EventObject } from "../../EventObject";
export class FrontendPermissions {
constructor() {
this._displayInObjectInspector = true;
this.propertyChanged = new EventObject();
}
get displayInObjectInspector() {
return this._displayInObjectInspector;
}
set displayInObjectInspector(value) {
if (this._displayInObjectInspector === value)
return;
this._displayInObjectInspector = value;
this.propertyChanged.notify();
}
getSimplifiedObject() {
const result = {};
result["displayInObjectInspector"] = this.displayInObjectInspector;
return result;
}
clone() {
const clone = new FrontendPermissions();
clone.displayInObjectInspector = this.displayInObjectInspector;
return clone;
}
equals(p) {
return this.displayInObjectInspector === p.displayInObjectInspector;
}
}
//# sourceMappingURL=FrontEndPermissions.js.map