How to gray out a taboption or a value on luci UI?


I'm using Lua CBI API to create a page. As usual, there is a section() object created and I have added a taboption() in the tab(). However, for some reasons, I want to gray out what the taboption() showing instead of hidding it. Does anyone know how could do it? Thanks!

Try o.readonly = true

Yep, readonly could prevent from writing, but it seems like it only works for Value taboption. With the ListValue ones, it doesn't work.