<commit_before># qgrid
Angular data grid

## examples
https://qgrid.github.io/ng2/

## installation
* `$ npm install ng2-qgrid`
* `$ bower install ng2-qgrid`

## run project
* `git clone https://github.com/qgrid/ng2.git`
* `npm install`
* `npm run start`

## licence
Code licensed under MIT license.<commit_msg>example to readme<commit_after># qgrid
Angular data grid

## examples
https://qgrid.github.io/ng2/

## installation
* `$ npm install ng2-qgrid`

* add grid module to your app module
```javascript
import {GridModule} from 'ng2-qgrid';

@NgModule({
	imports: [
		GridModule
	]
})
export class AppModule {
}
```

* add grid model and service to your component if it's required
```javascript
import {GridService} from 'ng2-qgrid';
import {GridModel} from 'ng2-qgrid/pub';

@Component({
	selector: 'my-component',
	templateUrl: './my-component.html'
})
export class MyComponent implements OnInit {
	public gridModel: GridModel;

	constructor(gridService: GridService) {
		this.gridModel = gridService.model();
	}

	ngOnInit(): void {
		this.gridModel
			.data({
				rows: getRows()
			});
	}
}
```

* add html markup to your component
```html
<q-grid [model]="gridModel">
	<q-grid-columns generation="deep">
		<q-grid-column type="number" aggregation="sum"></q-grid-column>
		<q-grid-column key="totalAmount" type="currency" aggregation="sum"></q-grid-column>
		<q-grid-column key="businessUnit">
			<ng-template for="foot">
				Total:
			</ng-template>
		</q-grid-column>
	</q-grid-columns>
</q-grid>
```

## run project
* `git clone https://github.com/qgrid/ng2.git`
* `npm install`
* `npm run start`

## licence
Code licensed under MIT license.
{'fraction_non_alphanumeric': 0.1603145795523291, 'fraction_numerical': 0.006049606775559589, 'mean_word_length': 4.267515923566879, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5116135', 'n_tokens_mistral': 611, 'n_tokens_neox': 569, 'n_words': 146}