Sha256: 66032ef15d9d46a96f6bbedcf7e3cca153ff307e5c136c9ce1ea325e099a71eb
Contents?: true
Size: 856 Bytes
Versions: 35
Compression:
Stored size: 856 Bytes
Contents
const actionResolver = (rowData, { _rowIndex }) => { // don't show actions for the expanded parts if (rowData.parent || rowData.compoundParent || rowData.noactions) return null; // printing to the console for now until these are hooked up /* eslint-disable no-console */ return [ { title: 'Publish and Promote', onClick: (_event, rowId, _rowInfo) => console.log(`clicked on row ${rowId}`), }, { title: 'Promote', onClick: (_event, rowId, _rowInfo) => console.log(`clicked on row ${rowId}`), }, { title: 'Copy', onClick: (_event, rowId, _rowInfo) => console.log(`clicked on row ${rowId}`), }, { title: 'Delete', onClick: (_event, rowId, _rowInfo) => console.log(`clicked on row ${rowId}`), }, ]; /* eslint-enable no-console */ }; export default actionResolver;
Version data entries
35 entries across 35 versions & 1 rubygems