mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 22:39:41 +02:00
17 lines
346 B
TypeScript
17 lines
346 B
TypeScript
|
import { columnHelper } from './helper';
|
||
|
|
||
|
export const name = columnHelper.accessor(
|
||
|
(event) => event.involvedObject.name ?? '-',
|
||
|
{
|
||
|
header: 'Name',
|
||
|
cell: ({ getValue }) => {
|
||
|
const name = getValue();
|
||
|
return (
|
||
|
<span title={name} className="ellipsis max-w-sm">
|
||
|
{name}
|
||
|
</span>
|
||
|
);
|
||
|
},
|
||
|
}
|
||
|
);
|