setReadOnly

open fun setReadOnly(isReadOnly: Boolean): B

Sets whether the form element is read-only. If set, the user may not change the value of the created form element.

Parameters

isReadOnly

true when the form element should be read-only.