fix(docs): string interpolation in display method body

Co-authored-by: Eric Liu <ericyl.us@gmail.com>
This commit is contained in:
Albert Mañosa 2020-10-24 23:52:53 +02:00 committed by GitHub
commit bdc41f1144
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -199,7 +199,7 @@ The slot name for the table header cells is `"cell-header"`.
{ key: "name", value: "Name" },
{ key: "protocol", value: "Protocol" },
{ key: "port", value: "Port" },
{ key: "cost", value: "Cost", display: (cost) => `${cost} €` },
{ key: "cost", value: "Cost", display: (cost) => cost + " €" },
{
key: "expireDate",
value: "Expire date",
@ -819,4 +819,4 @@ The slot name for the table header cells is `"cell-header"`.
### Skeleton (compact size)
<DataTableSkeleton showHeader={false} showToolbar={false} size="compact" />
<DataTableSkeleton showHeader={false} showToolbar={false} size="compact" />