Skip to content

Commit 4f69df1

Browse files
committed
Readme update
1 parent bc8ad39 commit 4f69df1

8 files changed

Lines changed: 104 additions & 2 deletions

File tree

BrowsingHistory.png

12.1 KB
Loading

LiveAge.png

1.93 KB
Loading

LocaleSelect.png

7.57 KB
Loading

README.md

Lines changed: 95 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ composer require vitexsoftware/ease-html-widgets
2626

2727
Here is a basic example of how to use one of the widgets:
2828

29+
### SandClock
30+
2931
```php
3032
require '../vendor/autoload.php';
3133

@@ -39,11 +41,103 @@ It gives you nice SandClock
3941

4042
![SandClock Widget](sandclock.svg?raw=true)
4143

44+
### OldTerminal
45+
46+
![Old Terminal](oldterminal.png?raw=true)
47+
48+
### Locale Select
49+
50+
Simple chooser of availble locales
51+
52+
```php
53+
new \Ease\ui\LangSelect()
54+
```
55+
56+
![LocaleSelect](LocaleSelect.png?raw=true "Locale select Widget")
57+
58+
### Live Age
59+
60+
Show live age based on unix timestamp
61+
62+
```php
63+
new \Ease\ui\LiveAge(new DateTime);
64+
```
65+
66+
![LiveAge](LiveAge.png?raw=true "Live Age Widget")
67+
68+
### Browsing History
69+
70+
```php
71+
new BrowsingHistory();
72+
```
73+
74+
![Browsing History](BrowsingHistory.png?raw=true "Browsing History")
75+
76+
### Sticky note
77+
78+
```php
79+
new StickyNote();
80+
```
81+
82+
![Sticky Note](StickyNote.png?raw=true "Sticky Note")
83+
84+
### Selectizer trait
85+
86+
Apply Selectize.js to InputBox or Select
87+
88+
```php
89+
class Selector extends \Ease\Html\SelectTag
90+
{
91+
use \Ease\Html\Widgets\Selectizer;
92+
}
93+
94+
$properties = [
95+
'valueField' => 'value',
96+
'labelField' => 'key',
97+
'searchField' => ['key', 'value']
98+
];
99+
100+
$options = [
101+
['key' => 'red', 'value' => 'Red'],
102+
['key' => 'blue', 'value' => 'Blue'],
103+
['key' => 'green', 'value' => 'Green'],
104+
['key' => 'yellow', 'value' => 'Yellow'],
105+
];
106+
107+
$s = new Selector('selector');
108+
$s->selectize($properties, $options);
109+
```
110+
111+
![Selectizer](https://raw.githubusercontent.com/VitexSoftware/Ease-PHP-Bricks/master/Selectizer.png "Selectizer")
42112

43113
## Contributing
44114

45115
We welcome contributions! Please read our [contributing guidelines](CONTRIBUTING.md) to get started.
46116

47117
## License
48118

49-
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
119+
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
120+
121+
### Debian Packages
122+
123+
To install using Debian packages from `repo.vitexsoftware.com`, follow these steps:
124+
125+
1. Add the repository to your sources list:
126+
127+
```bash
128+
wget -qO- https://repo.vitexsoftware.com/keyring.gpg | sudo tee /etc/apt/trusted.gpg.d/vitexsoftware.gpg
129+
echo "deb [signed-by=/etc/apt/trusted.gpg.d/vitexsoftware.gpg] https://repo.vitexsoftware.com $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/vitexsoftware.list
130+
sudo apt update
131+
```
132+
133+
2. Update the package list:
134+
135+
```bash
136+
sudo apt-get update
137+
```
138+
139+
3. Install the package:
140+
141+
```bash
142+
sudo apt-get install php-vitexsoftware-ease-html-widgets
143+
```

Selectizer.png

8.27 KB
Loading

StickyNote.png

41.2 KB
Loading

debian/changelog

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
php-vitexsoftware-ease-html-widgets (1.1.1) UNRELEASED; urgency=medium
2+
3+
* readme.md updated
4+
* Added images
5+
6+
7+
-- vitex <info@vitexsoftware.cz> Sun, 17 Nov 2024 08:33:55 +0100
8+
19
php-vitexsoftware-ease-html-widgets (1.1.0) unstable; urgency=medium
210

311
* Jenkins now stores artifacts
@@ -7,7 +15,7 @@ php-vitexsoftware-ease-html-widgets (1.1.0) unstable; urgency=medium
715
* Updated LiveAge widget to show live countdown with "+" and "-" signs
816
* Various code improvements and refactoring
917

10-
-- vitex <info@vitexsoftware.cz> Sat, 16 Nov 2024 12:59:37 +0100
18+
-- vitex <info@vitexsoftware.cz> Sun, 17 Nov 2024 08:33:35 +0100
1119

1220
php-vitexsoftware-ease-html-widgets (1.1.0) unstable; urgency=medium
1321

oldterminal.png

329 KB
Loading

0 commit comments

Comments
 (0)