public function readOnly($showAsPlainText = false)
    {
        $element = clone $this;
        $element->plainText = $showAsPlainText;

        return $element->attribute('readonly', 'readonly');
    }
public function readOnly($showAsPlainText = false)
    {
        $element = clone $this;
        $element->plainText = $showAsPlainText;

        return $element->attribute('readonly', 'readonly');
    }
public function readOnly ( $ showAsPlainText = false ) { $ element = clone $ this ; $ element -> plainText = $ showAsPlainText ; return $ element -> attribute ( 'readonly' , 'readonly' ) ; }
Make the input read only

@param bool $showAsPlainText Style the input just like plain text (no border, padding, etc.)

@return static
Make the input read only