15.08.2013 Views

Ektron® eWebEditPro Developer's Reference Guide

Ektron® eWebEditPro Developer's Reference Guide

Ektron® eWebEditPro Developer's Reference Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Entering the Sample Code<br />

Field How to Set Default Value<br />

Background<br />

Image<br />

Managing Tables<br />

Enter the sample code in a customevents.js file, in a onexeccommand handler<br />

function (for details, see “Creating a Custom Command” on page 215). The<br />

command is executed when the user selects it from a custom dropdown list or<br />

presses a custom button.<br />

To learn how to create a custom dropdown list, see “Creating a Popup Menu” on<br />

page 181.<br />

To learn how to create a custom button, see “Creating a Custom Command” on<br />

page 215.<br />

Controlling Alignment Field Responses<br />

In the configuration data, you can determine the possible responses and a default<br />

response for the following fields.<br />

Dialog<br />

Box<br />

Table<br />

Properties<br />

Cell<br />

Properties<br />

background=url of image<br />

Fields<br />

Horizontal Alignment<br />

Horizontal Alignment, Vertical Alignment<br />

NOTE You can only enter one set of responses for both Horizontal Alignment fields. In<br />

other words, you cannot specify one set of responses for the Horizontal Alignment<br />

field in the Table Properties box and a different set for the Horizontal Alignment<br />

field in the Cell Properties box.<br />

Controlling Responses for the Horizontal Alignment Field<br />

To specify the list of responses for the Horizontal Alignment field, add the<br />

following code between the tags in the configuration data. In this<br />

example, center is designated as the default response, because it has the<br />

default="true" attribute.<br />

<br />

<br />

<br />

<br />

<strong>Ektron®</strong> <strong>eWebEditPro</strong> Developer’s <strong>Reference</strong> <strong>Guide</strong>, Release 5.1, Revision 1 317

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!