custom-column-component.mdx 653 B

123456789101112131415161718192021222324252627
  1. ---
  2. title: "CustomColumnComponent"
  3. generated: true
  4. ---
  5. <GenerationInfo sourceFile="packages/admin-ui/src/lib/core/src/shared/components/data-table-2/data-table-custom-component.service.ts" sourceLine="44" packageName="@vendure/admin-ui" />
  6. Components which are to be used to render custom cells in a data table should implement this interface.
  7. The `rowItem` property is the data object for the row, e.g. the `Product` object if used
  8. in the `product-list` table.
  9. ```ts title="Signature"
  10. interface CustomColumnComponent {
  11. rowItem: any;
  12. }
  13. ```
  14. <div className="members-wrapper">
  15. ### rowItem
  16. <MemberInfo kind="property" type={`any`} />
  17. </div>