Skip to content

Add placeholder support for React Vanilla #1840

Open
@andresgutgon

Description

@andresgutgon

Is your feature request related to a problem? Please describe.

It would be great when placeholders could be defined via the ui schema and set in the respective inputs

Describe the solution you'd like

Allow for the optional attribute placeholder, e.g.

{
  "type": "Control",
  "scope": "#",
  "options": {
    "placeholder": "This is a placeholder"
  }
}

Describe alternatives you've considered

We could also think about checking for a placeholder attribute in the JSON Schema

Framework

React

RendererSet

Vanilla

Additional context

At least for Vue-Vanilla. When adding the possibility of defining a placeholder to the JSON Schema, then we could think about adding this to the JSON Forms core so any renderer set benefits from that.

This issue is a copy of this Vue issue
#1729

I guess the implementation would similar.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions