Skip to content

Commit

Permalink
Added Description Component
Browse files Browse the repository at this point in the history
  • Loading branch information
JonFromNYC committed Jul 24, 2020
1 parent b133a05 commit 46aa184
Show file tree
Hide file tree
Showing 13 changed files with 36 additions and 241 deletions.
Binary file removed public/favicon.ico
Binary file not shown.
33 changes: 1 addition & 32 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,11 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>AG-Grid Demo</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
Binary file removed public/logo192.png
Binary file not shown.
Binary file removed public/logo512.png
Binary file not shown.
25 changes: 0 additions & 25 deletions public/manifest.json

This file was deleted.

3 changes: 0 additions & 3 deletions public/robots.txt

This file was deleted.

9 changes: 2 additions & 7 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { Component } from 'react';
import './App.scss';
import { AgGridReact } from 'ag-grid-react';
import 'ag-grid-enterprise';
import Description from './Components/Description.component';


class App extends Component {
Expand Down Expand Up @@ -50,13 +51,7 @@ class App extends Component {
autoGroupColumnDef={this.state.autoGroupColumnDef}
rowData={this.state.rowData}>
</AgGridReact>
<div>
<p>This is a React Component using AG-Grid to make an interactive pivot table.</p>
You can select multiple rows. Group/Ungroup the list of cars.
<p>Sort or Filter the grid will display a small column menu icon when you hover the header.
Pressing it will display a popup with a filtering UI which lets you choose the kind of filter and the text that you want to filter by.</p>
Right Clicking brings the options to export to .csv, .xml, or .xlsx.
</div>
<Description />
</div>
);
}
Expand Down
9 changes: 0 additions & 9 deletions src/App.test.js

This file was deleted.

32 changes: 32 additions & 0 deletions src/Components/Description.component.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import React from 'react';

const Description = () => {
return (
<div>
<p>This is a React Component using AG-Grid to make an interactive pivot table.</p>
You can
<ul>
<li>Select multiple rows</li>
<li>Group/Ungroup the list of cars</li>
<li>Sort or Filter the grid when you hover over the column names the filter appears
</li>
<li>Right Click to export to .csv, .xml, or .xlsx.</li>
<li>Save selections you've checked off and save them to a database.
Click a few boxes and then click "Get Selected Rows"
</li>
</ul>
Try this
<ol>
<li>Click the <span style={{ border: '1px solid lightGrey', padding: '0px 3px 0px 3px'}}></span> button to the left of Ford.</li>
<li>Click the checkbox to select one of the rows from the list that dropped down</li>
<li>Now click the <span style={{ border: '1px solid lightGrey', padding: '0px 3px 0px 3px' }}></span> button to the left of Porsche.</li>
<li>Click the first checkbox in this drop down</li>
<li>Click the <span style={{ border: '1px solid lightGrey', padding: '0px 3px 0px 3px' }}>Get Selected rows</span> button to save what you selected</li>
<li>Next, test the exporting functions. Right click the last row you selected. Mouse over to Export and choose the export option of your choice.</li>
<li>Last, hover the cursor over any column name. A menu button will appear. Click the menu button and try some of the extra features.</li>
</ol>
</div>
);
};

export default Description;
13 changes: 1 addition & 12 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,5 @@ import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';

ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();
ReactDOM.render(<App />,document.getElementById('root'));
7 changes: 0 additions & 7 deletions src/logo.svg

This file was deleted.

141 changes: 0 additions & 141 deletions src/serviceWorker.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/setupTests.js

This file was deleted.

0 comments on commit 46aa184

Please sign in to comment.