![]() |
WebObjectTree for PHP
|
This document is an API reference for the WebObjectTree Library. It contains brief descriptions for the client-side and server-side properties, methods and events used by the control.
For demonstration of these APIs, you are encouraged to see the WebObjectTree samples. They contain many interactive examples of their usage.
To place the WebObjectTree control on your PHP page, follow these steps:
Here is a minimal PHP page with the control integrated and the relevant WebObjectTree code highlighted:
<?php include 'Coalesys.WebObjectTree.php'; $webObjectTree1 = new Coalesys\WebObjectTree\WebObjectTree("WebObjectTree1", $_REQUEST); $webObjectTree1->addItem("hello, world"); ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Sample Page</title> <script src="WebObjectTree.js" type="text/javascript"></script> <link href="WebObjectTree.css" rel="stylesheet" type="text/css" /> </head> <body> <form action="index.php" method="post"> <div> <?php echo $webObjectTree1->renderControl() ?> </div> </form> </body> </html>