mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 14:29:40 +02:00
Co-authored-by: James Player <james.player@portainer.io> Co-authored-by: Cara Ryan <cara.ryan@portainer.io> Co-authored-by: stevensbkang <skan070@gmail.com>
16 lines
346 B
TypeScript
16 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>
|
|
);
|
|
},
|
|
}
|
|
);
|