Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f81d48b3d4 | ||
|
|
06fa3f01fd | ||
|
|
d15bb746cd |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ag-grid-react-example",
|
"name": "ag-grid-react-example",
|
||||||
"version": "19.1.2",
|
"version": "20.0.0",
|
||||||
"description": "Example Reach applicaiton using ag-Grid.",
|
"description": "Example Reach applicaiton using ag-Grid.",
|
||||||
"main": "dist/ag-grid-react-example.js",
|
"main": "dist/ag-grid-react-example.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -57,9 +57,9 @@
|
|||||||
"webpack-dev-server": "3.1.14"
|
"webpack-dev-server": "3.1.14"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ag-grid-community": "^19.1.0",
|
"ag-grid-community": "^20.0.0",
|
||||||
"ag-grid-enterprise": "^19.1.0",
|
"ag-grid-enterprise": "^20.0.0",
|
||||||
"ag-grid-react": "^19.1.0",
|
"ag-grid-react": "^20.0.0",
|
||||||
"bootstrap": "4.1.3",
|
"bootstrap": "4.1.3",
|
||||||
"d3": "4.9.1",
|
"d3": "4.9.1",
|
||||||
"lodash": "^4.17.11",
|
"lodash": "^4.17.11",
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<script type="text/javascript" src="../dist/react-examples.js" charset="utf-8"></script>
|
<script type="text/javascript" src="../dist/react-examples.js" charset="utf-8"></script>
|
||||||
<!-- Example uses font awesome icons -->
|
<!-- Example uses font awesome icons -->
|
||||||
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
|
<link href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" rel="stylesheet">
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
html, body {
|
html, body {
|
||||||
|
|||||||
@@ -25,12 +25,12 @@ export default class RichGridDeclarativeExample extends Component {
|
|||||||
sideBar: false,
|
sideBar: false,
|
||||||
rowData: new RowDataFactory().createRowData(),
|
rowData: new RowDataFactory().createRowData(),
|
||||||
icons: {
|
icons: {
|
||||||
columnRemoveFromGroup: '<i class="fa fa-remove"/>',
|
columnRemoveFromGroup: '<i class="fa fa-times"/>',
|
||||||
filter: '<i class="fa fa-filter"/>',
|
filter: '<i class="fa fa-filter"/>',
|
||||||
sortAscending: '<i class="fa fa-long-arrow-down"/>',
|
sortAscending: '<i class="fa fa-long-arrow-alt-down"/>',
|
||||||
sortDescending: '<i class="fa fa-long-arrow-up"/>',
|
sortDescending: '<i class="fa fa-long-arrow-alt-up"/>',
|
||||||
groupExpanded: '<i class="fa fa-minus-square-o"/>',
|
groupExpanded: '<i class="far fa-minus-square"/>',
|
||||||
groupContracted: '<i class="fa fa-plus-square-o"/>'
|
groupContracted: '<i class="far fa-plus-square"/>'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,10 +30,10 @@ export default class SortableHeaderComponent extends React.Component {
|
|||||||
|
|
||||||
sortElements.push(<div key={`up${this.props.displayName}`} className={downArrowClass}
|
sortElements.push(<div key={`up${this.props.displayName}`} className={downArrowClass}
|
||||||
onClick={this.onSortRequested.bind(this, 'desc')}><i
|
onClick={this.onSortRequested.bind(this, 'desc')}><i
|
||||||
className="fa fa-long-arrow-down"/></div>);
|
className="fa fa-long-arrow-alt-down"/></div>);
|
||||||
sortElements.push(<div key={`down${this.props.displayName}`} className={upArrowClass}
|
sortElements.push(<div key={`down${this.props.displayName}`} className={upArrowClass}
|
||||||
onClick={this.onSortRequested.bind(this, 'asc')}><i
|
onClick={this.onSortRequested.bind(this, 'asc')}><i
|
||||||
className="fa fa-long-arrow-up"/></div>);
|
className="fa fa-long-arrow-alt-up"/></div>);
|
||||||
sortElements.push(<div key={`minus${this.props.displayName}`} className={removeArrowClass}
|
sortElements.push(<div key={`minus${this.props.displayName}`} className={removeArrowClass}
|
||||||
onClick={this.onSortRequested.bind(this, '')}><i
|
onClick={this.onSortRequested.bind(this, '')}><i
|
||||||
className="fa fa-times"/></div>)
|
className="fa fa-times"/></div>)
|
||||||
|
|||||||
Reference in New Issue
Block a user