ソースを参照

docs: Improve custom data table component docs

Fixes #2471
Michael Bromley 2 年 前
コミット
66990bcc7a

+ 2 - 2
docs/docs/guides/extending-the-admin-ui/custom-data-table-components/index.md

@@ -33,7 +33,7 @@ import { CustomColumnComponent } from '@vendure/admin-ui/core';
     standalone: true,
     standalone: true,
 })
 })
 export class SlugLinkComponent implements CustomColumnComponent {
 export class SlugLinkComponent implements CustomColumnComponent {
-    @Input() rowItem: any;
+    @Input() rowItem: { slug: string };
 }
 }
 ```
 ```
 
 
@@ -93,7 +93,7 @@ import { SlugLink } from './components/SlugLink';
 export default [
 export default [
     registerReactDataTableComponent({
     registerReactDataTableComponent({
         component: SlugWithLink,
         component: SlugWithLink,
-        tableId: 'collection-list',
+        tableId: 'product-list',
         columnId: 'slug',
         columnId: 'slug',
         props: {
         props: {
             // Additional props may be passed to the component
             // Additional props may be passed to the component