12345 |
- /*
- All material copyright ESRI, All Rights Reserved, unless otherwise specified.
- See https://js.arcgis.com/4.25/esri/copyright.txt for details.
- */
- import{_ as t}from"../../chunks/tslib.es6.js";import{property as e}from"../../core/accessorSupport/decorators/property.js";import"../../core/arrayUtils.js";import"../../core/accessorSupport/ensureType.js";import{subclass as r}from"../../core/accessorSupport/decorators/subclass.js";import o from"./Grid/Column.js";const s={attachmentsColumn:"esri-feature-table__column--attachments"};let a=class extends o{constructor(t){super(t),this.header="",this.path="EsriFeatureTableAttachmentsColumn",this.renderFunction=({root:t,rowData:e})=>{const r=this._countFromItem(e.item).toString();t.innerHTML=`<div class="${s.attachmentsColumn}">${r}</div>`},this.sortable=!1,this.textAlign="center"}_countFromItem(t){return t.attachments&&t.attachments.length||0}};t([e({constructOnly:!0})],a.prototype,"header",void 0),t([e({readOnly:!0})],a.prototype,"path",void 0),t([e()],a.prototype,"renderFunction",void 0),t([e({readOnly:!0})],a.prototype,"sortable",void 0),t([e({readOnly:!0})],a.prototype,"textAlign",void 0),a=t([r("esri.widgets.FeatureTable.AttachmentsColumn")],a);const n=a;export{n as default};
|