-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add loader demo which triggers #234 error
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
require 'init.php'; | ||
|
||
$s = $app->add(['ui'=>'green segment'])->setStyle('min-height', '20em'); | ||
$b = $app->add(['Button','Click me']); | ||
$b->on('click', new \atk4\ui\jsReload($s, ['a'=>'yes'])); | ||
|
||
if (isset($_GET['a'])) { | ||
$s->add('LoremIpsum'); | ||
|
||
// this triggers issue #234 | ||
new blabalba(); | ||
} else { | ||
$s->add(['ui'=>'active dimmer'])->add(['ui'=>'active text loader'])->set('Loading.. Click button to load'); | ||
} |