Using custom components in grid cells
See original GitHub issueHere’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:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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.
Looking forward to 1.0 …soon…? 😃