Skip to content

Fix docs: formview -> readonly #2745

@kfina-planxy

Description

@kfina-planxy

Steps to reproduce

In a form.blade.view do:

<x-twill::input
        name="myfield"
        :readonly="true"
    />

as docs state the field name is "readonly"

Expected result

Field is readonly.

Actual result

Field is NOT readonly.

Solution

Change readonly to read-only:

<x-twill::input
        name="myfield"
        :read-only="true"
    />

Please update the docs to show that for "@formview" the field is named "read-only" instead of "readonly" or at least add it to the code example with "read-only".

Versions

Twill version: 3.4.1
Laravel version: 11
PHP version: 8.2
Database engine: MySql

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions