Maslosoft Framework Logo Maslosoft Framework Documentation
Flexible Application Foundation


Grid View

Grid view automatically renders columns according to model definition. By default it displays all columns, this can be customized by selecting only desired columns. It requires data provider to fill, get and manipulate data.

No items found
First name Last name E-mail Activated
echo GridView::widget([
	'dataProvider' => new DataProvider(new ExampleUser(), [
		'pagination' => [
			'size' => 10
		]
			]),
	'columns' => [
		'firstName',
		'lastName',
		'email',
		'active'
	]
]);
Sorting is persisted between requests and sessions - but only for authenticated users.