Blazor textarea setting issue

Haviv Elbsz 2,071 Reputation points
2023-09-27T11:26:14.95+00:00

Hello all. how I do set a textarea element so it will have a specific width an height and that it's text will have a horizontal and vertical scrollable . I want that when user type text the line length be when user keying ENTER key. Thank you very much

Developer technologies | .NET | Blazor
0 comments No comments
{count} vote

Accepted answer
  1. AgaveJoe 1,510 Reputation points
    2023-09-27T12:13:54.1533333+00:00

    The textarea element uses the rows and cols attributes to define the length (rows) and width (cols). Any HTML reference documentation will have the specifications.

    HTML <textarea> Tag

    I would create a quick test page and play with the attributes to learn how the textarea elements works. Also, you might be interested in reading about Blazor form input components.

    ASP.NET Core Blazor forms and input components

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.