S
S
Stanislav2019-07-31 15:21:28
Bootstrap
Stanislav, 2019-07-31 15:21:28

Which element/library/other is best suited for outputting sometimes multi-line text?

Situation: There are N input elements under each other, in which certain text is displayed. Each element has several buttons on the right. Text is displayed in the elements, which sometimes does not fit into the sizes allotted for these inputs.
Task: change the layout so that it continues to meet the following requirements:

  • The text must be displayed in full. Its maximum length is not radical, but can be several hundred characters long. It can be a link or a long product name, for example.
  • Several buttons should be adequately attached to the text, to each of the fields.
  • In terms of height, all output fields, together with the buttons attached to them, should occupy a minimum of space.
  • The text should be convenient to copy both manually and using a js script (one of them is hanging on those buttons right now).
  • The text is available only for viewing, the fields are informational, not for input.
  • Each field must have a caption.
  • There can be several fields for each signature, that is, for example, the same link to a product can be more than one.
  • The user does not need to manually change the size of the fields.
  • Bootstrap 3.
  • AdminLTE.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Udaltsov, 2019-07-31
@uashkki

<textarea>
For example in Bootstrap:

<div class="form-group">
  <label for="exampleFormControlTextarea1">Example textarea</label>
  <textarea class="form-control" id="exampleFormControlTextarea1" rows="3"></textarea>
</div>

https://getbootstrap.com/docs/4.0/components/forms/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question