Want to replace text box with text.

0
I want to have simple text in comment box with no underlying background color and no border and should have all the functionalities of text box. Basically I want it to look like a non editable text like the same way comment is shown. Can anyone help with this.   Thanks.
asked
4 answers
2

Hi Sathyam, 

You can change the control type as text instead of control and that will do this job. 


and add styles that removes the broders from textbox.

answered
1

Hi Satyam,

Do you mean of read-only style? https://docs.mendix.com/refguide/data-view#editability

answered
1

He Andrew,

If you set the background-color on the textarea, the whole area including the label gets this color. The reason the input area does not get the background-color, is that this is superceded by the background-color set by the form-control class. See the pictures below.

 

One way to go would be to create a custom textarea class, add this class to the textarea and style the textarea there. Something like this:

.textarea-custom {
    textarea {
         background-color: red;
    }
}

 

 

answered
0

Do you also know how to change the background-colour of the Textarea? We have tried Class and Style in the properites, but it has no impact?

answered