beautypg.com

Adding a variable grid control, Tree controls – Adobe Extending Dreamweaver CS4 User Manual

Page 93

background image

87

EXTENDING DREAMWEAVER CS4

User interfaces for extensions

You can change the

connection

attribute to retrieve selected data and display it in the tree. You can use the

DBTreeControl

attribute as a JavaScript wrapper object for the new tag. For more examples, see the

DBTreeControlClass.js file in the Configuration/Shared/Common/Scripts folder.

Adding a variable grid control

The variable grid control has the following attributes:

The following example adds a simple variable grid control to a dialog box:

The following example creates a variable grid control that is 500 pixels wide, with five columns of various widths: