Skip to content

optional template slot for labels #456

Closed
@gwenaelp

Description

@gwenaelp

Hi,

Would it be a good idea to let users implement (optionnally) a template for form fields ?

<vue-form-generator>
    <template slot="empty" slot-scope="props">
        {{props.label}}
    </template>
</vue-form-generator>

By default, without writing the template slot, the behaviour would be the actual one.
It is also conceivable to implement the same logic for fields wrappers.

Like that, it would be possible to implement collapsible fields for instance.

Thoughts?

If you think it is a good idea I can have a look at it.

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