Empty data

Table is empty

Default Nothing to display.
$grid->setEmptyText($string);

No rows after filtering

Default Nothing found. Please change the filter criteria.
$grid->setEmptyFilterText($string);

Usage

$mesourApp = //instance Mesour\Components\Application\IApplication
$source = //some <a href="http://components.mesour.com/version3/component/sources/" target="_blank">data source</a> or two-dimensional array

$grid = new Mesour\UI\DataGrid('filterDataGrid', $mesourApp);

$grid->setSource($source);

//! here change empty text
$grid->setEmptyText('This table is empty');

$grid->addText('name', 'Name');

$grid->addText('surname', 'Surname');

$grid->render();

Demo


NameSurname

This table is empty