Repository URL to install this package:
|
Version:
2.8.4 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
const tslib_1 = require("tslib");
const mobx_1 = require("xmobx/mobx");
const ExpandableCard_1 = require("../../../organisms/ExpandableCard");
class ListState extends ExpandableCard_1.ExpandableState {
constructor() {
super(...arguments);
this.isActive = false;
this.listName = '';
this.isPrivate = false;
}
setIsVisible(isActive) {
this.isActive = isActive;
}
setListName(name) {
this.listName = name;
}
setIsPrivate(isPrivate) {
this.isPrivate = isPrivate;
}
}
tslib_1.__decorate([mobx_1.observable], ListState.prototype, "isActive", void 0);
tslib_1.__decorate([mobx_1.observable], ListState.prototype, "listName", void 0);
tslib_1.__decorate([mobx_1.observable], ListState.prototype, "isPrivate", void 0);
tslib_1.__decorate([mobx_1.action.bound], ListState.prototype, "setIsVisible", null);
tslib_1.__decorate([mobx_1.action.bound], ListState.prototype, "setListName", null);
tslib_1.__decorate([mobx_1.action.bound], ListState.prototype, "setIsPrivate", null);
exports.ListState = ListState;
exports.default = ListState; //# sourceMappingURL=state.js.map