From 74d01962a6f77eb2b8138864f18ed53eb136c432 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Sat, 26 Mar 2016 14:01:09 +0100 Subject: Custom pagelet ID's --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.php') diff --git a/index.php b/index.php index a713b07..3386d5e 100755 --- a/index.php +++ b/index.php @@ -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('
I AM A PAGELET WITH BLUE BACKGROUND
'); $PageletBlue->addCSS('static/blue.php'); $PageletBlue->addJS('static/delayJS.php'); -- cgit v1.2.3