-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
48 lines (37 loc) · 1.25 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?PHP
require 'vendor/autoload.php';
$app = new \atk4\ui\App('Space');
$app->initLayout('Centered');
$img = 'https://www.nasa.gov/sites/default/files/thumbnails/image/ocs_iss_0.jpg';
$Label = $app->add(['Label', 'Hello Space','image'=>$img]);
$Label->set(['massive'=>true]);
$Label->link('http://google.com/');
$label = $app->add(['Label', 'hello world']);
$label->link('https://google.com/');
$app->add(['Label', 'МКС', 'image'=>$img,'Huge'=>true,'massive'=>true]);
$text = $app->add(['Text', 'Некий текст']);
$text = $app->add('Text')
->addParagraph('Первый')
->addParagraph('Второй');
$message = new \atk4\ui\Message('Message Title');
$app->add($message);
$icon = $app->add(['Image', $img, 'enabled']);
/*$button = new Button('Link to program');
$button->addClass('big');
$button->icon = 'book';
$button->link(['task','key'=>'ok']);
//$button->link(['4_2.php', 'id'=123]);
//$button->link(['4_2.php', 'id'=>123]);
//$button->link('http://google.com/');
//$button->link=(['http://www.agiletoolkit.org/intro/1']);
//$button->js()->hide();
$app->layout->add($button); */
/*
* use \atk4\ui\Button;
* use \atk4\ui\Buttons;
* use \atk4\ui\Header;
* use \atk4\ui\Icon;
* use \atk4\ui\Label;
* use \atk4\ui\Template;
* use \atk4\ui\View;
*/