Home Reference Source Repository

src/app/core/models/components/component-options.js

import { COMPONENT_TYPE } from "../../enums/component-type-enum";

export class ComponentOptions {
  constructor(id, title, icon, componentType) {
    this.id = id;
    this.title = title;
    this.icon = icon;
    this.description;
    this.type =
      componentType == undefined
        ? COMPONENT_TYPE.ELEMENT_DRAWER
        : componentType;
  }
}