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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Customizing the Popup Button<br />

”Customizable JavaScript Files” on page 227 explains how to edit the JavaScript<br />

files. The rest of this section explains how to customize the popup button using<br />

JavaScript.<br />

Customizing the createButton Command<br />

Parameter ewebeditprodefaults.js<br />

popup.query popupQuery<br />

styleSheet<br />

See Also: ”Style Sheets” on<br />

page 367<br />

By default, when you create a popup edit button for <strong>eWebEditPro</strong> (using the<br />

element), a standard HTML button with a caption of<br />

Edit is created.<br />

In JavaScript, use the createButton method to create the button.<br />

<strong>eWebEditPro</strong>.createButton("btnName", "contentFieldName");<br />

To customize the popup button, use the parameters buttonTag object. You can set<br />

it in ewebeditprodefaults.js or in JavaScript before calling the createButton<br />

method.<br />

You specify the popup button caption in ewebeditpromessages.js as<br />

popupButtonCaption. You can also set it in JavaScript using the value property.<br />

The following are values for the type property (or popupButtonTagType in<br />

ewebeditprodefaults.js). They let you determine the form of the popup edit button.<br />

Value Description HTML<br />

For example:<br />

<br />

<br />

styleSheet<br />

inputbutton Standard Input Button <br />

button Button Edit<br />

image Graphic Image (.gif or .jpg) <br />

imagelink Hyperlinked Image <br />

hyperlink Hyperlinked text Edit<br />

custom Custom HTML (custom)<br />

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

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

Saved successfully!

Ooh no, something went wrong!