Skip to content

Commit

Permalink
Add loader demo which triggers #234 error
Browse files Browse the repository at this point in the history
  • Loading branch information
romaninsh committed Oct 16, 2017
1 parent 0d8b544 commit 144d8a6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions demos/loader.php
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');
}

0 comments on commit 144d8a6

Please sign in to comment.