import { BaseField } from '../../BaseField';
export class SubFormField extends BaseField {
  constructor(id, title, fields, description, 
  // TODO
  layout, showFieldOrder, language) {
    super(id, 'subForm');
    this.id = id;
    this.title = title;
    this.description = description;
    this.fields = fields;
    this.language = language;
    this.layout = layout;
    this.showFieldOrder = showFieldOrder;
    this.maxCount = 1;
    this.minCount = 1;
    this.separated = true;
    this.value = undefined;
  }
  setMaxCount(maxCount) {
    this.maxCount = maxCount;
    return this;
  }
  setMinCount(minCount) {
    this.minCount = minCount;
    return this;
  }
  setSeparated(separated) {
    this.separated = separated;
    return this;
  }
}
SubFormField.type = 'subForm';
