wave-ui icon indicating copy to clipboard operation
wave-ui copied to clipboard

[typescript][w-table] Typescript slot definitions for item-cell

Open DerrikMilligan opened this issue 2 years ago • 0 comments

For a template section like this:

<w-table :headers="tableHeaders" :items="tableItems">
	<template #item-cell.name="{ item }">
		<td>Custom Cell...</td>
	</template>
</w-table>

Without this change the template slot #item-cell.name shows that it's an error.

I left the original item-cell without the slot modifier so that for autocompletion we still can see it and get the documentation for it.

DerrikMilligan avatar Feb 26 '24 17:02 DerrikMilligan