{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "grid-row-template",
  "framework": "angular",
  "type": "registry:component",
  "component": "Grid",
  "variant": "row-template",
  "dependencies": [
    "@syncfusion/ej2-angular-grids"
  ],
  "description": "Data grid with a row template that renders a full order card per row with customer avatar, ship-to details, and status chip.",
  "meta": {
    "essentialStudioRelease": "2026 Volume 3 (v35.1.37)",
    "license": "commercial-or-community",
    "licenseNote": "The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md",
    "requiresLicenseKey": true,
    "requiresServerEndpoint": false,
    "platformIndex": "https://ai.syncfusion.com/angular/llms.txt",
    "skillPack": "syncfusion/angular-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/angular/grid-row-template.md"
  },
  "files": [
    {
      "target": "src/components/grid-row-template/grid.component.html",
      "content": "<div style=\"margin: 50px 90px\">\n  <ejs-grid [dataSource]='data' width='auto' height='460' gridLines='Horizontal'>\n    <ng-template #rowTemplate let-data>\n      <tr>\n        <td class=\"e-order-cell\" style=\"padding:0;border-bottom:1px solid #e0e0e0\">\n          <div style=\"display:flex;align-items:flex-start;gap:48px;padding:28px 40px\">\n            <div [style.background]=\"color(data.CustomerID)\" style=\"width:110px;height:110px;border-radius:50%;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;flex-shrink:0\">\n              <span style=\"font-size:32px;font-weight:700;line-height:1\">{{ initials(data.ShipName) }}</span>\n              <span style=\"font-size:12px;opacity:.9;margin-top:6px\">#{{ data.OrderID }}</span>\n            </div>\n            <div style=\"display:flex;flex-direction:column;min-width:0;text-align:left;font-size:17px;line-height:1.5;color:#333\">\n              <div style=\"margin-bottom:14px\">\n                <span style=\"font-weight:700;margin-right:10px\">{{ data.ShipName }}</span>\n                <span style=\"font-weight:300\">({{ data.CustomerID }})</span>\n              </div>\n              <div style=\"margin-bottom:14px\">{{ data.ShipAddress }}, {{ data.ShipCity }}</div>\n              <div class=\"e-chip-list e-outline\" style=\"display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px\">\n                <div class=\"e-chip\"><span class=\"e-chip-text\">{{ data.ShipCity }}</span></div>\n                <div class=\"e-chip\"><span class=\"e-chip-text\">{{ data.ShipCountry }}</span></div>\n                <div class=\"e-chip\"><span class=\"e-chip-text\">{{ status(data) }} · {{ days(data) }}d</span></div>\n              </div>\n              <div>\n                <span style=\"font-weight:300;font-size:18px\">Freight</span>\n                <span style=\"font-size:32px;font-weight:500;margin-left:6px\">{{ data.Freight | currency }}</span>\n              </div>\n            </div>\n          </div>\n        </td>\n      </tr>\n    </ng-template>\n    <e-columns>\n      <e-column headerText='ORDER LIST' textAlign='Center' field='ShipName'></e-column>\n    </e-columns>\n  </ejs-grid>\n</div>"
    },
    {
      "target": "src/components/grid-row-template/grid.component.ts",
      "content": "import { Component } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { GridModule } from '@syncfusion/ej2-angular-grids';\nimport { orderData } from '../datasource/grid-data';\n\n@Component({\n  selector: 'app-grid-row-template',\n  standalone: true,\n  imports: [CommonModule, GridModule],\n  templateUrl: './grid.component.html'\n})\nexport class RowTemplateComponent {\n  public data: Object[] = orderData;\n  private palette = ['#6366f1', '#0ea5e9', '#10b981', '#f59e0b', '#ec4899', '#8b5cf6'];\n\n  public color(text: string): string {\n    return this.palette[[...text].reduce((s, c) => s + c.charCodeAt(0), 0) % this.palette.length];\n  }\n  public initials(name: string): string {\n    return name.trim().split(/\\s+/).map(p => p[0]).slice(0, 2).join('').toUpperCase();\n  }\n  public days(o: any): number {\n    return Math.max(0, Math.round((new Date(o.ShippedDate).getTime() - new Date(o.OrderDate).getTime()) / 86400000));\n  }\n  public status(o: any): string {\n    const d = this.days(o);\n    return d <= 5 ? 'Fast' : d <= 10 ? 'On time' : 'Delayed';\n  }\n}"
    }
  ]
}