Zapatec.EditInline

Overview | File | Class | Tree | Index | Help

Zapatec Utils

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## Class Zapatec.EditInline

    Object
       |
       +--Zapatec.EventDriven
             |
             +--Zapatec.Widget
                   |
                   +--Zapatec.EditInline

class Zapatec.EditInline
extends Zapatec.Widget

Defined in edit_inline.js

Fields inherited from class Zapatec.Widget
`config`

Constructor Summary
`Zapatec.EditInline(<object> objArgs)` EditInline class.

Method Summary
`void` | `documentClick(evt)`
`void` | `hide()` Hide EditInline element
`void` | `init(<object> objArgs)` Initializes object.
`void` | `keyEvent(evt)`
`void` | `saveAndHide()` Copy textarea content back to element (innerHTML property will be used) and hide widget.
`String` | `saveContent()` Function to copy value from textarea back to element.
`void` | `setContent(<String> newContent)` Function to set textarea content
`void` | `show(<Object> target)` Use this function to show EditInline under element.

Methods inherited from class Zapatec.Widget
`reconfigure, getConfiguration, addCircularRef, createProperty, discard, defineConfigOption, addUserEventListeners, addStandardEventListeners, loadTheme, getClassName, formElementId, showContainer, hideContainer, showHideContainer, loadData, loadDataHtml, loadDataHtmlText, loadDataJson, loadDataXml, receiveData, replyData, replyDataCancel, replyDataReturn, acceptData, getMessage`

Methods inherited from class Zapatec.EventDriven
`addEventListener, unshiftEventListener, removeEventListener, getEventListeners, isEventListener, isEvent, removeEvent, fireEvent`

Constructor Detail

### Zapatec.EditInline

    Zapatec.EditInline(<object> objArgs)

EditInline class.

Parameters:

`objArgs` - User configuration

Method Detail

### documentClick

    void documentClick(evt)

### hide

    void hide()

Hide EditInline element

### init

    void init(<object> objArgs)

Initializes object.

Parameters:

`objArgs` - User configuration

### keyEvent

    void keyEvent(evt)

### saveAndHide

    void saveAndHide()

Copy textarea content back to element (innerHTML property will be used) and hide widget.

### saveContent

    String saveContent()

Function to copy value from textarea back to element. innerHTML property will be redefined.

Returns:

Edited content

### setContent

    void setContent(<String> newContent)

Function to set textarea content

Parameters:

`newContent` -

### show

    void show(<Object> target)

Use this function to show EditInline under element.

Parameters:

`target` - Reference to target element to edit.

`newContent` - Default textarea content.

Overview | File | Class | Tree | Index | Help

Zapatec Utils

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Documentation generated by JSDoc on Thu Aug 16 12:18:39 2007