Index | OAT homepage | OpenLink Software

# OATDOCquickedit

- OATDOCquickedit
- _ _ quickedit.js
- _ _ _ _ Functions
- _ _ _ _ _ _ OAT.QuickEdit.assign(element, type, [options])
- _ _ _ _ Constants
- _ _ _ _ _ _ OAT.QuickEdit.STRING
- _ _ _ _ _ _ OAT.QuickEdit.SELECT
- _ _ _ _ Example

## quickedit.js

Provides edit-in-place functionality.

### Functions

#### OAT.QuickEdit.assign(element, type, [options])

Marks element as `QuickEdit` , i.e., when user clicks it, it transforms into input. `type` specifies input type -- `QuickEdit.STRING`

> input, `QuickEdit.SELECT`

> select. If `QuickEdit.SELECT` type is chosen, values are specified as an array in `options` .

### Constants

#### OAT.QuickEdit.STRING

string value

#### OAT.QuickEdit.SELECT

predefined values from the select element

### Example

    var text = OAT.Dom.create("span");
    text.innerHTML = "hello";
    OAT.QuickEdit.assign(text, OAT.QuickEdit.SELECT, ["hello","hi","goodbye"]);

Copyright (C) 2005-2008 OpenLink Software