Sha256: 9f92a9ffd6e60838e754899d614bb67b37d685be9e7f0e906d053b2002e3d89b

Contents?: true

Size: 358 Bytes

Versions: 4

Compression:

Stored size: 358 Bytes

Contents

import React from 'react';
import { cellFormatter } from 'foremanReact/components/common/table';
import EllipsisWithTooltip from 'react-ellipsis-with-tooltip';

export const actionNameCellFormatter = url => (value, { rowData: { id } }) =>
  cellFormatter(
    <a href={`/${url}/${id}`}>
      <EllipsisWithTooltip>{value}</EllipsisWithTooltip>
    </a>
  );

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
foreman-tasks-3.0.6 webpack/ForemanTasks/Components/TasksTable/formatters/actionNameCellFormatter.js
foreman-tasks-3.0.5 webpack/ForemanTasks/Components/TasksTable/formatters/actionNameCellFormatter.js
foreman-tasks-3.0.4 webpack/ForemanTasks/Components/TasksTable/formatters/actionNameCellFormatter.js
foreman-tasks-3.0.3 webpack/ForemanTasks/Components/TasksTable/formatters/actionNameCellFormatter.js