EccTextarea
EccTextarea shows and edits longer text - as plain text or, with richText, in a WYSIWYG editor.
import { EccTextarea } from "@ecceene/ui-core";
The component uses the basic props of all field components - see Component Basics.
Examples
// display long text with line breaks
<EccTextarea fieldLabel="Reason" value="variables.purchase.reason" data={process} />
// plain input with 6 rows
<EccTextarea id="decisionComment" fieldLabel="Comment" valueOut="output.decisionBoolean.comment" rows={6} editable />
// rich text editor, output is HTML
<EccTextarea fieldLabel="Description" value="purchase.description" data={draft} richText editable valueOut />
// display stored HTML formatted
<EccTextarea fieldLabel="Description" value="variables.purchase.description" data={process} parseRichText />
Props
Basic props (id, fieldLabel, value, data, valueInit, editable, mandatory, valueOut, hidden, allowedGroups, className), plus:
|
|
| height of the plain input |
|
|
| WYSIWYG editor in editable mode; output is HTML |
|
|
| read-only: render stored HTML instead of showing the tags |
CSS
Change the look in the CSS file of your workspace, see Styling.
| wrapper of the field (default of |
| plain text, read-only and editable |
| rich text editor and its read-only display |
| toolbar of the rich text editor |
The field frame (label row, value, copy and info button) is the same for all fields, see Component Basics.
Related
super component: basic props (own rendering) | |
single-line text |
On this page
- EccTextarea