- Namespace:
- Redakt.ContentManagement.Annotations
- Assembly:
- Redakt.ContentManagement.dll
Configures the editor as a textbox. Can only be applied to string properties (including HtmlString") />.
[AttributeUsage]
public sealed class TextEditorAttribute: IContentPropertyAttribute
- Inheritance:
- ObjectAttributeTextEditorAttribute
- Implements:
- IContentPropertyAttribute
Constructors
Properties
Width |
Sets the width of the editor in pixels. Use the WidthAttribute instead to set width by CSS string. Default width is 100%.
|
Height |
Sets the height of the editor in pixels. Only applies to multiline textboxes.
|
Multiline |
If true, this will render a multiline text box (textarea).
|
Prefix |
Specifies an optional prefix that will be displayed to the left of the input. This only applies to single-line editors.
|
Suffix |
Specifies an optional suffix that will be displayed to the right of the input. This only applies to single-line editors.
|
Align |
Specifies the horizontal alignment for the input field. Default is align left.
|
Methods