mirror of
https://github.com/xfarrow/phpxpress.git
synced 2025-06-05 21:59:21 +02:00
Update README.md
This commit is contained in:
@@ -23,18 +23,12 @@ $employees = array($employee1, $employee2, $employee3);
|
|||||||
|
|
||||||
$table = new PhpXpress\Table;
|
$table = new PhpXpress\Table;
|
||||||
$table->setDataSource($employees);
|
$table->setDataSource($employees);
|
||||||
|
$table->setCustomCaptions(array("Name", "Surname", "Date of Birth", "Social Security Number")); //not required. If not specified it'll use objects' property names
|
||||||
//not required. If not specified it'll use objects' property names
|
|
||||||
$table->setCustomCaptions(array("Name", "Surname", "Date of Birth", "Social Security Number"));
|
|
||||||
|
|
||||||
$table->addColumn("Extra");
|
$table->addColumn("Extra");
|
||||||
|
|
||||||
$table->onValueDisplaying("onValueDisplaying");
|
$table->onValueDisplaying("onValueDisplaying");
|
||||||
|
|
||||||
$table->setStripedRows(true);
|
$table->setStripedRows(true);
|
||||||
$table->setBordered(true);
|
$table->setBordered(true);
|
||||||
$table->setHoverAnimation(true);
|
$table->setHoverAnimation(true);
|
||||||
|
|
||||||
$table->draw();
|
$table->draw();
|
||||||
|
|
||||||
function onValueDisplaying($caption, &$value, $row){
|
function onValueDisplaying($caption, &$value, $row){
|
||||||
|
Reference in New Issue
Block a user