Sha256: dfedb8932ac2b96c6243cf933af1e68c9cbae07a638fb7bd680d288e9dff618e

Contents?: true

Size: 750 Bytes

Versions: 157

Compression:

Stored size: 750 Bytes

Contents

import React from 'react';
import selectionCellFormatter from './selectionCellFormatter';
import CollapseSubscriptionGroupButton from '../components/CollapseSubscriptionGroupButton';

export default (collapseableController, selectionController, additionalData) => {
  const shouldShowCollapseButton = collapseableController.isCollapseable(additionalData);
  const isGenericRow = additionalData.rowData.collapsible;

  return selectionCellFormatter(
    isGenericRow,
    selectionController,
    additionalData,
    shouldShowCollapseButton && (
      <CollapseSubscriptionGroupButton
        collapsed={collapseableController.isCollapsed(additionalData)}
        onClick={() => collapseableController.toggle(additionalData)}
      />
    ),
  );
};

Version data entries

157 entries across 157 versions & 1 rubygems

Version Path
katello-4.16.0 webpack/components/pf3Table/formatters/collapseableAndSelectionCellFormatter.js
katello-4.15.1 webpack/components/pf3Table/formatters/collapseableAndSelectionCellFormatter.js
katello-4.16.0.rc2 webpack/components/pf3Table/formatters/collapseableAndSelectionCellFormatter.js
katello-4.16.0.rc1 webpack/components/pf3Table/formatters/collapseableAndSelectionCellFormatter.js
katello-4.14.3 webpack/components/pf3Table/formatters/collapseableAndSelectionCellFormatter.js
katello-4.14.2 webpack/components/pf3Table/formatters/collapseableAndSelectionCellFormatter.js
katello-4.15.0 webpack/components/pf3Table/formatters/collapseableAndSelectionCellFormatter.js
katello-4.15.0.rc2 webpack/components/pf3Table/formatters/collapseableAndSelectionCellFormatter.js
katello-4.15.0.rc1 webpack/components/pf3Table/formatters/collapseableAndSelectionCellFormatter.js
katello-4.14.1 webpack/components/pf3Table/formatters/collapseableAndSelectionCellFormatter.js
katello-4.14.0 webpack/components/pf3Table/formatters/collapseableAndSelectionCellFormatter.js
katello-4.14.0.rc3 webpack/components/pf3Table/formatters/collapseableAndSelectionCellFormatter.js
katello-4.14.0.rc2 webpack/components/pf3Table/formatters/collapseableAndSelectionCellFormatter.js
katello-4.14.0.rc1.1 webpack/components/pf3Table/formatters/collapseableAndSelectionCellFormatter.js
katello-4.14.0.rc1 webpack/components/pf3Table/formatters/collapseableAndSelectionCellFormatter.js
katello-4.13.1 webpack/components/pf3Table/formatters/collapseableAndSelectionCellFormatter.js
katello-4.13.0 webpack/components/pf3Table/formatters/collapseableAndSelectionCellFormatter.js
katello-4.12.1 webpack/components/pf3Table/formatters/collapseableAndSelectionCellFormatter.js
katello-4.13.0.rc1 webpack/components/pf3Table/formatters/collapseableAndSelectionCellFormatter.js
katello-4.12.0 webpack/components/pf3Table/formatters/collapseableAndSelectionCellFormatter.js