public function buildDashboard() { $table = new TableComponent('table1'); $table->setCaption("Table 1"); $table->setDimensions(6, 3); $table->setRowsPerPage(8); $table->addColumn('colA', "Column A"); $table->addColumn('colB', "Column B"); $table->setRowDataSource('paginate', $this); $table->setNumberOfRows(40); $table->setRowsPerPage(7); $this->addComponent($table); }
public function buildDashboard() { $table = new TableComponent('table1'); $table->setCaption("List of Employees"); $table->setDimensions(6, 3); $table->addColumn('FirstName', "First Name"); $table->addColumn('LastName', "Last Name"); $table->addColumn('City', "City"); $table->addColumn('State', "State", array('textItalicFlag' => true)); $table->addColumn('Country', "Country"); $table->setRowDataSource('paginate', $this); $table->setNumberOfRows($this->getEmployeesCount()); $table->setRowsPerPage(2); $this->addComponent($table); }