Info Panel

Info Panel displays number of all of the items loaded to the grid. It is displayed at the bottom of the grid. It is a very useful feature especially when you work with asynchronous data, mainly because it allows you to track number of data loaded from the server.

Info panel is often used with another great feature Virtual scroll.

Info Panel
info-panel.component.ts
info-panel.component.html
Number
Name
Position
Team
8 Kobe BryantSG Los Angeles Lakers 1 Tracy McGradySG Houston Rockets 23 Lebron JamesPF Los Angeles Lakers 3 Dwayne WadeSG Miami Heat 15 Vince CarterSG Atlanta Hawks 34 Charles BarkleyPF N/A 15 Nikola JokićPF Denver Nuggets 0 Russell WestbrookPG Houston Rockets 7 Kevin DurantPF Brooklyn Nets 13 James HardenPG/SG Houston Rockets 13 Paul GeorgeSG Los Angeles Clippers 25 Ben SimmonsPG Philadelphia 76ers 2 Kawhi LeonardSG/SF Los Angeles Clippers 21 Joel EmbiidC Philadelphia 76ers 34 Giannis AntetokounmpoPF Milwaukee Bucks 30 Stephen CurryPG Golden State Warriors 11 Klay ThompsonSG Golden State Warriors 23 Anthony DavisPF Los Angeles Lakers

Showing 18 items

Info

@Component({
	selector: 'docs-info-panel-grid',
	templateUrl: './docs.info-panel-grid.component.html'
})
export class DocsInfoPanelGridComponent {

	infoPanel = true;

	columns = [{
		header: 'Number',
		field: 'number',
		width: 60
	}, {
		header: 'Name',
		field: 'name',
		view: GuiCellView.ITALIC
	}, {
		header: 'Position',
		field: 'position',
		view: GuiCellView.BOLD
	}, {
		header: 'Team',
		field: 'team'
	}];

	source = source;

	toggleInfoPanel(): void {
		this.infoPanel = !this.infoPanel;
	}
}
<gui-button-toggle
	[checked]="infoPanel"
	(click)="toggleInfoPanel()">
	Info Panel
</gui-button-toggle>

<gui-grid [infoPanel]="infoPanel"
	[maxHeight]="300"
	[columns]="columns"
	[source]="source">
</gui-grid>

Related articles:






We use cookies to improve your experience. If you continue browsing, we assume that you consent to our use of cookies.