question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using custom components in grid cells

See original GitHub issue

Here’s a brief snippet of code from a test I’m running up:

import {NGXCButton} from '../../../common/components/ui.jsx';

class GridTest extends Component {

render() {
        const ActiveAction = <NGXCButton btnText='Active' active={true} />

        const columnMeta = [{
            columnName: 'name',
        }, {
            columnName: 'shortStatus',
            displayName: 'Status'
        }, {
            columnName: 'id',
            customComponent: ActiveAction
        }];

        return (
            <Griddle
                columns={['name', 'shortStatus', 'id']}
                columnMetadata={columnMeta}
                useExternal={true}
                externalSetPage={this.setPage}
                externalChangeSort={this.changeSort}
                externalSetFilter={this.setFilter}
                externalSetPageSize={this.setPageSize}
                externalMaxPage={this.props.maxPages}
                externalCurrentPage={this.props.currentPage}
                results={this.props.campaigns}
                resultsPerPage={this.props.resultsPerPage}
                externalSortColumn={this.props.sortColumn}
                externalSortAscending={this.props.sortAscending}
                showFilter={true}
                showSettings={true}
            />
        );
    }
}

Given that this doesn’t work in the browser, am I right in saying there’s no way of including an existing component in a column?

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
ryanlanciauxcommented, Aug 24, 2016

Well 😃 I’m trying – Just moved and getting ready to welcome a new baby into the world. We will see – it’s fairly close BUT trying to get the API solidified a bit more so we’re not recommending basing plugins on an API that we later decide is not going to work. Also we’d like to give time for people to work with the beta a bit (when that’s available) to get more eyes on everything.

0reactions
slashwhatevercommented, Aug 24, 2016

Looking forward to 1.0 …soon…? 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular Data Grid: Components
You can create your own custom components to customise the behaviour of the grid. For example you can customise how cells are rendered,...
Read more >
Render a custom component to cell in ag Grid|| Codenemy
Hey Guys, in this video i will show How to render a custom component to ag Grid cell.
Read more >
Creating custom components for ag-grid - /var/
A custom column in ag-grid actually has two distinctive parts: An object that is used for rendering and an object that is used...
Read more >
Using custom component in ag-grid cell render - Stack Overflow
Everything seems to be working fine for me. I have created a similar component wrapped inside a div in a plunker from one...
Read more >
ag-Grid Components: An Overview
You can create your own custom components to customise the behaviour of the grid. For example you can customise how cells are rendered,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found