Giter VIP home page Giter VIP logo

editor's People

Contributors

danielwarke avatar dshk0718 avatar hyperkid123 avatar rvsia avatar victoria-dos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

editor's Issues

How to use editor-pro

This project looks very useful.

import Editor from '@data-driven-forms/editor-pro/editor'
...
<Editor componentMapper={componentMapper} fields={fields}/>

How to get the field changes? (Will the dnd useState hook work from outside the Editor?)

Documentation

  • Prepare documentation (could be possibly exported to demo via some request)

When removing component from editor return error

Error
Uncaught TypeError: Cannot read properties of undefined (reading 'children')

My code

import componentMapper from '@data-driven-forms/ant-component-mapper/component-mapper';
import FormTemplate from '@data-driven-forms/ant-component-mapper/form-template';
import Editor from '@data-driven-forms/editor-pro/editor';
import propertiesFields from '@data-driven-forms/editor-pro/editor/properties-fields';
import { Schema } from '@data-driven-forms/react-form-renderer';

import schema from './data2.json';

const fields = propertiesFields({ componentMapper });

console.log("fields",fields);
const FormEditorPage = () => {
  return (
    <Editor
      fields={fields}
      initialSchema={schema}
      componentMapper={componentMapper}
      FormTemplate={FormTemplate}
    />
  );
};

export default FormEditorPage;
image

Live editor issues

Errors

  1. When removing the field editor return error (Uncaught TypeError: Cannot read properties of undefined (reading 'children'))
  2. Show schema button not working (Nothing happened when clicked it)
  3. When dragging a field from the component then two fields are added in the editor (Added duplicate fields)

My code

import componentMapper from '@data-driven-forms/ant-component-mapper/component-mapper';
import FormTemplate from '@data-driven-forms/ant-component-mapper/form-template';
import Editor from '@data-driven-forms/editor-pro/editor';
import propertiesFields from '@data-driven-forms/editor-pro/editor/properties-fields';
import { Schema } from '@data-driven-forms/react-form-renderer';

import schema from './data2.json';

const fields = propertiesFields({ componentMapper });

console.log("fields",fields);
const FormEditorPage = () => {
  return (
    <Editor
      fields={fields}
      initialSchema={schema}
      componentMapper={componentMapper}
      FormTemplate={FormTemplate}
    />
  );
};

export default FormEditorPage;

Screen Shorts

Issue1
image

Issue2
image

Issue3
image

[Editor Pro] Properties editor missing sections

  • fieldProps
    • options field
    • custom props
  • validators
    • basic
      • type
      • message
      • other params (threshold)
    • custom (validatorMapper)
  • condition
    • nesting
    • all types
  • field props
    • initialValue
    • initializeOnMount
    • clearUnmount
    • clearedValue (?)
    • isEqual (only description)
  • actions (?)
  • resolveProps (only description)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.