fix(core): update

This commit is contained in:
Philipp Kunz 2023-09-13 21:13:47 +02:00
parent 61f646743a
commit 0229eefa4d
3 changed files with 10 additions and 4 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@design.estate/dees-catalog',
version: '1.0.197',
version: '1.0.198',
description: 'website for lossless.com'
}

View File

@ -2,6 +2,12 @@ import { type ITableAction } from './dees-table.js';
import * as plugins from './plugins.js';
import { html } from '@design.estate/dees-element';
interface ITableDemoData {
date: string;
amount: string;
description: string;
}
export const demoFunc = () => html`
<style>
.demoWrapper {
@ -51,7 +57,7 @@ export const demoFunc = () => html`
iconName: 'bell',
useTableBehaviour: 'upload',
type: ['inRow'],
actionFunc: async (itemArg: any) => {
actionFunc: async (itemArg) => {
alert(itemArg.amount);
},
},
@ -100,7 +106,7 @@ export const demoFunc = () => html`
return null;
},
},
] as ITableAction[]}"
] as (ITableAction<ITableDemoData>)[] as any}"
.displayFunction=${(itemArg) => {
return {
...itemArg,

View File

@ -84,7 +84,7 @@ export class DeesTable<T> extends DeesElement {
@property({
type: Array,
})
public dataActions: ITableAction[] = [];
public dataActions: ITableAction<T>[] = [];
@property({
attribute: false,