Sha256: c3dbce563235fc465f3257a647dfb5a29541ec9952aa44e735a169c37b81b8aa
Contents?: true
Size: 867 Bytes
Versions: 31
Compression:
Stored size: 867 Bytes
Contents
import React from 'react'; import { urlBuilder } from 'foremanReact/common/urlHelpers'; import { translate as __ } from 'foremanReact/common/I18n'; import { headerFormatter, cellFormatter, } from '../../../move_to_foreman/components/common/table'; const TableSchema = [ { property: 'name', header: { label: __('Name'), formatters: [headerFormatter], }, cell: { formatters: [ (value, { rowData }) => ( <td> <a href={urlBuilder(`products/${rowData.product_id}/repositories`, '', rowData.id)}> {rowData.name} </a> </td> ), ], }, }, { property: 'product_name', header: { label: __('Product'), formatters: [headerFormatter], }, cell: { formatters: [cellFormatter], }, }, ]; export default TableSchema;
Version data entries
31 entries across 31 versions & 1 rubygems