@pilotlab/lux-attributes
Version:
A luxurious user experience framework, developed by your friends at Pilot.
32 lines • 1.56 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var attributeEnums_1 = require("./attributeEnums");
var lux_nodes_1 = require("@pilotlab/lux-nodes");
var attributeChangeOptions_1 = require("./attributeChangeOptions");
var AttributeCreateOptions = (function (_super) {
__extends(AttributeCreateOptions, _super);
function AttributeCreateOptions(value, dataType, label, changeOptions) {
if (dataType === void 0) { dataType = attributeEnums_1.DataType.COLLECTION; }
if (changeOptions === void 0) { changeOptions = attributeChangeOptions_1.default.default; }
var _this = _super.call(this) || this;
_this.value = value;
_this.dataType = dataType;
_this.label = label;
_this.changeOptions = attributeChangeOptions_1.default.default;
return _this;
}
return AttributeCreateOptions;
}(lux_nodes_1.NodeCreateOptions));
exports.AttributeCreateOptions = AttributeCreateOptions;
exports.default = AttributeCreateOptions;
//# sourceMappingURL=attributeCreateOptions.js.map