This commit is contained in:
Alessandro Ferro 2022-03-07 12:52:35 +01:00
commit 83d6900995
1 changed files with 28 additions and 1 deletions

View File

@ -6,12 +6,14 @@ It's similar to Microsoft's WebForms with a great layout by default (like DevExp
## Available components ## Available components
* Table * Table
* Card * Card
* Breadcumb
## Example ## Examples
### Table ### Table
The following code The following code
``` ```
$employees = array($employee1, $employee2, $employee3); $employees = array($employee1, $employee2, $employee3);
@ -28,12 +30,14 @@ $table->draw();
``` ```
produces the following output produces the following output
<img src="/phpxpress/examples/demoTable.jpg" alt="Demo"> <img src="/phpxpress/examples/demoTable.jpg" alt="Demo">
### Card ### Card
The follwing code The follwing code
``` ```
Card::beginCardGroupLayout(36); Card::beginCardGroupLayout(36);
@ -80,6 +84,29 @@ Card::endCardGroupLayout();
``` ```
produces the following output produces the following output
<img src="/phpxpress/examples/card.jpg" alt="Demo"> <img src="/phpxpress/examples/card.jpg" alt="Demo">
$card2 receives a DataSource whereas $card1 does not. $card2 receives a DataSource whereas $card1 does not.
### Breadcrumb
The follwing code
```
$links["Github"] = "https://www.github.com";
$links["xfarrow"] = "https://www.github.com/xfarrow";
$links["PhpXpress"] = "https://www.github.com/xfarrow/phoxpress";
$breadcrumb = new BreadCrumb;
$breadcrumb->setDataSource($links);
$breadcrumb->draw();
```
Produces the following output:
<img src="/phpxpress/examples/breadcrumb.jpg" alt="Demo">