Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get property title/label in custom Code-Slot/Component-Slot #468

Open
ibot3 opened this issue Dec 20, 2024 · 0 comments
Open

How to get property title/label in custom Code-Slot/Component-Slot #468

ibot3 opened this issue Dec 20, 2024 · 0 comments

Comments

@ibot3
Copy link
Contributor

ibot3 commented Dec 20, 2024

In VJSF v2 it was possible to use custom components by putting the name of the component into x-display.

In v3, a similar result is achieved with

layout: {
  slots: {
    component: 'custom-vue-component'
  }
},

However, in v2 a prop called label was given into that component which represented the title of the rendered property/field.

In v3, I could not find that information within the node prop that is given to the custom component.
Other (non-custom) components seem that have that information available at node.layout, but in custom components not.

Did I miss something or is it currently not possible to get the title/description of the field that should be rendered?

(Context: I want to display a label over my custom component to clarify for what it is for)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant