Column chooser

Column chooser plugin

Installation

This plugin is pre-installed in qgrid and will be rendered by default.

To remove the column chooser, empty the actions array.

How to

To remove the column chooser, empty the actions array.

@Component({
	selector: 'my-component',
	template: `
		<q-grid [rows]="rows$ | async" [model]="gridModel">
			<q-grid-columns generation="deep">
			</q-grid-columns>
		</q-grid>
	`,
	providers: [DataService],
	changeDetection: ChangeDetectionStrategy.OnPush
})
export class MyComponent {
	rows$= this.dataService.getRows();
	gridModel = this.qgrid.model().action({items: []});

	constructor(
		private dataService: DataService,
		private qgrid: Grid
	) {
	}
}