diff options
author | Thomas Lange <code@nerdmind.de> | 2016-03-26 14:01:09 +0100 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2016-03-26 14:01:09 +0100 |
commit | 74d01962a6f77eb2b8138864f18ed53eb136c432 (patch) | |
tree | 1d6de62cdea46b167fc08231e1805988c94477ad /index.php | |
parent | 1b951d0a00ec8b8255f56287fe36a51a5ed7ab75 (diff) | |
download | bigpipe-74d01962a6f77eb2b8138864f18ed53eb136c432.tar.gz bigpipe-74d01962a6f77eb2b8138864f18ed53eb136c432.tar.xz bigpipe-74d01962a6f77eb2b8138864f18ed53eb136c432.zip |
Custom pagelet ID's
Diffstat (limited to 'index.php')
-rwxr-xr-x | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -32,7 +32,7 @@ $PageletRed->addJSCode("document.getElementById('red').innerHTML += ' [JS execut #==================================================================================================== # Pagelet with blue background color #==================================================================================================== -$PageletBlue = new BigPipe\DemoPagelet(BigPipe\Pagelet::PRIORITY_HIGH); +$PageletBlue = new BigPipe\DemoPagelet('customPageletID', BigPipe\Pagelet::PRIORITY_HIGH); $PageletBlue->addHTML('<section id="blue" class="text">I AM A PAGELET WITH BLUE BACKGROUND</section>'); $PageletBlue->addCSS('static/blue.php'); $PageletBlue->addJS('static/delayJS.php'); |