Hide

YetaWF Documentation

Display
Print

TextAreaSourceOnly Component

TextAreaSourceOnly (Display)

Displays the model rendered as a string using the HTML <textarea> tag. The model is assumed to already be HTML encoded.

Model Type: object

AdditionalMetadata Attributes

NameTypeDefaultDescription
EmHeightint10Defines the height of the component in lines of text.
CopybooltrueDefines whether a copy icon is displayed to allow the user to copy the contents to the clipboard. If false is specified, no copy icon is shown.
[Caption("Message"), Description("The feedback message")]
[UIHint("TextAreaSourceOnly"), ReadOnly]
public string Comment { get; set; }

TextAreaSourceOnly (Edit)

Allows entry of a formatted HTML encoded string using the HTML <textarea> tag. The model is assumed to already be HTML encoded.

Model Type: object

If the StringLengthAttribute is specified for the model, the textarea element is limited to the specified number of characters.

To render a more advanced text editor using CKEditor, use the TextArea Component instead.

AdditionalMetadata Attributes

NameTypeDefaultDescription
EmHeightint10Defines the height of the component in lines of text.
SpellcheckbooleantrueDefines whether spell checking is on/off for the text area.

Sibling Properties

NameTypeDescription
model__PlaceHolderstringDefines the placeholder text shown when control contents are empty.
[Caption("Comment"), Description("Enter your comment about this blog entry for others to view")]
 [UIHint("TextAreaSourceOnly"), StringLength(BlogComment.MaxComment)]
 public string Comment { get; set; }