Skip to content


Browse files Browse the repository at this point in the history
  • Loading branch information
kisvegabor committed Jul 23, 2021
1 parent 1b7e2b5 commit 6d8799f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/widgets/core/
Expand Up @@ -74,13 +74,19 @@ In password mode `lv_textarea_get_text(textarea)` returns the actual text entere

The visibility time can be adjusted with `LV_TEXTAREA_DEF_PWD_SHOW_TIME)` in `lv_conf.h`.

### Text alignment

To align the text in the Text area ` lv_textarea_set_align(textarea, LV_TEXT_ALIGN_LEFT/RIGHT/CENTER)` needs to be used instead of setting the `text_align` style property.

### Accepted characters
You can set a list of accepted characters with `lv_textarae_set_accepted_chars(textarea, "0123456789.+-")`.
Other characters will be ignored.

### Max text length
The maximum number of characters can be limited with `lv_textarea_set_max_length(textarea, max_char_num)`

### Very long texts
If there is a very long text in the Text area (e. g. > 20k characters), scrolling and drawing might be slow.
However, by enabling `LV_LABEL_LONG_TXT_HINT 1` in `lv_conf.h` the performance can be hugely improved.
Expand Down

0 comments on commit 6d8799f

Please sign in to comment.