Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Advanced widgets, any interest to include them in Deform? #465

@tdamsma

Description

@tdamsma

I have created a few "advanced" widgets for my projects based on deform, and I would be more than willing to give them back to this repo but not sure if they would fit in as they are quite js heavy (and thus require lots of js to be put in the statics directory or links to a cdn).

Here is the list:

  • Select2SortableWidget

    Based on http://finn.heemeyer.net/select2.sortable/, extension of select2 that allows drag and drop to change the order of the selected items

  • JsonWidget

    Json editor based on https://ajv.js.org/. Validates against a jsonschema on both server and client side

  • ReactJsonSchemaFormWidget

    Client side form generator based on https://github.com/rjsf-team/react-jsonschema-form. Validates against a jsonschema on both server and client side. (About 500kb of minified js)

  • JExcelObjectArrayWidget

    Based on https://jexcel.net/v3, allows editing a List[Dict[str:Union[str,int,float,bool]], as an excel like table where every row corresponds to a dict in a list. (About 600kb of non-minified js/css)

Effectively these are all wrappers around existing js libraries. For my projects I just vendored it in, but especially for the react widget this is not trivial as it has a complete build toolchain. So my question is if there is interest in me trying to make these available as part of Deform. And if so, how to deal with the js dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions