AG-528 Document and use in examples overriding of style in child (react component) divs

This commit is contained in:
Sean Landsman
2017-06-14 15:32:09 +01:00
parent 464a0ea9f4
commit b54d549959
6 changed files with 6 additions and 13 deletions

View File

@@ -1,3 +0,0 @@
.ag-group-value .ag-react-container {
display: inline-block;
}

View File

@@ -3,8 +3,6 @@ import React, {Component} from "react";
import {AgGridReact} from "ag-grid-react";
import MedalRenderer from "./MedalRenderer";
import "./GroupedRowInnerRendererComponentExample.css";
import "ag-grid-enterprise";
export default class GroupedRowInnerRendererComponentExample extends Component {

View File

@@ -8,6 +8,9 @@ export default class MedalRenderer extends Component {
this.gold = this.props.data.gold;
this.silver = this.props.data.silver;
this.bronze = this.props.data.bronze;
// override the containing div so that the +/- and label are inline
this.props.reactContainer.style.display = "inline-block";
}
render() {