Author: Rusty Klophaus (@rustyio)

# In-Place Textarea Element

Getting Started | API | Elements | Actions | Validators | Handlers | Configuration Options | About

## Table of Contents

- 1 In-Place Textarea Element - #inplacetextarea {}

## 1 In-Place Textarea Element - #inplacetextarea {}

The inplace_textarea element creates a textarea that the user can edit in place.

The user clicks on the label, and it is replaced with a textarea, an OK button, and a Cancel button.

If the user clicks OK, a callback is issued to the delegate module so that it can save the new text.

### Usage

    #inplace_textarea { id=textarea1, text="Some text." }

### Attributes

text - (string)
  Set the textarea's contents.
html_encode - (boolean)
  Set to true to safely html-encode the text.
start_mode - (/Atom, 'edit' or 'view'/)
  Set whether the textarea should start in edit mode or view mode.
validators - (Validator, or list of validators.)
  Validators to apply to the textarea.
tag - (Erlang term)
  See the delegate attribute for details.

### Callbacks

#### inplace_textareaevent(Tag, Value)

Called when the user presses the OK button. Tag is specified in the 'tag' attribute, above. Value is the current value of the textarea. This callback function should process the value as necessary, and must return either the value itself, or a new value that will be sent back to the page and set as the value of the textarea.

### See Also

- base element
- inplacetextbox element
- inplace element
- textarea element

Date: 2012-10-18 03:25:21 CDT

Author: Rusty Klophaus (@rustyio)

Org version 7.8.02 with Emacs version 23

Validate XHTML 1.0

## Comments

Note:To specify code blocks, just use the generic code block syntax:

    <pre><code>your code here</code></pre>

comments powered by Disqus