ADOBE SYSTEMS INCORPORATED
Copyright 2001-2002 Adobe Systems Incorporated
All Rights Reserved
NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms of the Adobe license agreement accompanying it. If you have received this file from a source other than Adobe, then your use, modification, or distribution of it requires the prior written permission of Adobe.
Extension Name: Layout
Folder name: Layout
Description:
The JSXLayout object allows you to read and write html attributes of GoLive objects such as tables, img, buttons, and don't have to reparse the document to view changes. See the SDKÂ documentation to find out which objects have a layout object. Custom boxes do not have a layout object. If you use the JSXLayout object, changes will appear in the History window so that the user may do and undo the changes.
For example, you've got a document opened in layout mode and a table is selected. In the JavaScript shell, type:
document.selection.element.layout.setAttribute( "width", 500 );
The width of the table element changes in Layout view and in the Inspector, and you can see the change to the width attribute of the table by switching to Source view. Additionally you'll be able to undo/redo this action through the history window.
This sample extension creates a new document, and uses the Layout object to create a table on the page, format and add images and other text to the table. After running the extension, view the changes to the document in the History window.
How to Use:
You will need a folder containing 10 images named picture0.gif through picture9.gif.
Select Extensions > Samples > Demo Layout.
Select the folder containing the images. A document with these images will be created in this directory.
Module Definition:
Scripts:
User Interface Tags:
JSXLocale Specify localized versions of strings used in menu items, dialogs, alerts, etc.
US | DE | FR |
---|---|---|
Menu Bar Add items and menus to the GoLive menu bar.