import Template from 'template'; import FieldInput from 'template/page/instance-form/type/field-input'; import FieldRowTemplate from 'template/page/instance-form/field-row'; interface Input { readonly fields: FieldInput[]; } class FieldTableTemplate extends Template { protected getHtml(): string { if (!this.hasFields()) { return this.getEmptyHtml(); } const value_list_header = this.getValueListHeader(); const explicit_value_header = this.getExplicitValueHeader(); const field_rows_html = this.getFieldRowsHtml(); return `
| Key | Type | ${value_list_header} | ${explicit_value_header} |
|---|