@serenity-is/corelib / getElementReadOnly

Function: getElementReadOnly()

getElementReadOnly(el): boolean

Defined in: src/base/html.ts:132

Gets readonly state of an element. If the element is null, returns null. It does not check for attached widgets. It returns true if the element has readonly class, disabled attribute (select, radio, checkbox) or readonly attribute (other inputs).

Parameters

el

Element

element

Returns

boolean