How to disable a text area object?

hi everyone
I am trying to toggle enable/disable state of a lv_textarea object.
I have used the lv_add_state() and lv_set_state() functions to disable the text area but I failed to disable the text area.
how can I do it?