Update README.md

This commit is contained in:
Alessandro Ferro 2022-02-23 18:22:52 +01:00 committed by GitHub
parent 4bacdff0de
commit 84c65deb49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 9 deletions

View File

@ -1,16 +1,16 @@
# phpxpress
The following code
```
$employees = array($employee1,$employee2,$employee3);
$employees = array($employee1,$employee2,$employee3);
$table = new Table;
$table->setDataSource($employees);
$table->setCustomCaptions(array("Name", "Surname", "Date of Birth", "Social Security Number"));
$table->setStripedRows(true);
$table->setBordered(true);
$table->setHoverAnimation(true);
$table->draw();
$table = new Table;
$table->setDataSource($employees);
$table->setCustomCaptions(array("Name", "Surname", "Date of Birth", "Social Security Number"));
$table->setStripedRows(true);
$table->setBordered(true);
$table->setHoverAnimation(true);
$table->draw();
```
Produces the following output
<img src="/phpxpress/examples/demoTable.jpg" alt="Demo">
<img src="/phpxpress/examples/demoTable.jpg" alt="Demo">