-
Notifications
You must be signed in to change notification settings - Fork 6
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 use editor-pro #11
Comments
Hello, we are still discovering how to use it as it is still a work-in-progress project, however, fields is just a regular DDF scheme. Check the implementation to see more details, as we haven’t written any docs yet. We are planning to split the current propertiesFields method to some builder/multiple methods so consumers can use our provided fields in their structures etc. The hook won’t work outside the editor as it is need its context. We will appreciate any feedback! |
Thanks. So how about something like this, or is it too meta? import FieldsComponent from '@data-driven-forms/editor-pro/fields-component'
const componentMapper = {
'ddf-fields': FieldsComponent
}
const schema = {
fields: [{
component: 'ddf-fields',
name: 'fields',
}]
} |
@fullergalway this would be too meta. We aim to provide a consistent experience for developers - so the editor itself is just a ddf form, so it is easy to update. |
Thanks.
So how about something like this, or is it too meta?
```jsx
import FieldsComponent from ***@***.***/editor-pro/fields-component'
const componentMapper = {
'ddf-fields': FieldsComponent
}
const schema = {
fields: [{
component: 'ddf-fields',
name: 'fields',
}]
}
```
…On Thu, 9 Jun 2022 at 16:51, Richard Všianský ***@***.***> wrote:
Hello, we are still discovering how to use it as it is still a
work-in-progress project, however, fields is just a regular DDF scheme.
Check the implementation to see more details, as we haven’t written any
docs yet.
We are planning to split the current propertiesFields method to some
builder/multiple methods so consumers can use our provided fields in their
structures etc.
The hook won’t work outside the editor as it is need its context.
We will appreciate any feedback!
—
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOI5NPKW6PVKEFGBHU2YN3VOIHGZANCNFSM5YKMSGWA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This project looks very useful.
How to get the field changes? (Will the dnd useState hook work from outside the Editor?)
The text was updated successfully, but these errors were encountered: