Closed luizzappa closed 8 months ago
Hello,
I believe this is already supported by the formatting setting TextArea. This class extends the TextInput setting and delivers the layout you show in your second image.
The following is the type declaration
export declare class TextInput extends SimpleSlice<string> { placeholder: string; type?: visuals.FormattingComponent; constructor(object: TextInput); getFormattingComponent?(objectName: string): visuals.TextInput; }
export declare class TextArea extends TextInput { type?: visuals.FormattingComponent; }
The following is an implementation example:
public myText: formattingSettings.TextArea = new formattingSettings.TextArea({ name: 'myText', displayName: 'TextArea', value: '', placeholder: null });
This is what it looks like:
The type in the capabilities should be text, as you correctly defined.
Works like a charm!
Currently, it is only possible to add text properties to a single line, however, it is a bad experience for the user, especially if needs to break lines.
The property below generates the following field:
It would be cool to be able to use a multiline text like the alt text present in the visuals: