paddy-react-edit-list
TypeScript icon, indicating that this package has built-in type declarations

1.1.37 • Public • Published

react-edit-list

License: ISC npm version Node.js CI codecov

Universal Editable List React Component

react-edit-list allows for easy creation of editable lists in React that can be interfaced with a database

  • Fully customizable
  • Zero-dependency
  • Supports async callbacks for calling externals APIs
  • Supports input validation
  • Supports optional null fields
  • Supports custom field types

Installation

npm i --save react-edit-layers

Usage

Refer to the examples

screenshot

API

Table of Contents

Element

Field type

id means a hidden field that will be carried on by react-edit-list without any processing

string and number have default rendering and input components

custom allows you to define your own rendering and input components

Passing an array of name/value pairs allows defining of an enum field

Type: ("id" | "string" | "number" | Array<{name: string, value: (string | undefined)}> | "custom")

Schema

Schema for the data

Type: Array<{name: string, type: Element}>

/paddy-react-edit-list/

    Package Sidebar

    Install

    npm i paddy-react-edit-list

    Weekly Downloads

    3

    Version

    1.1.37

    License

    ISC

    Unpacked Size

    608 kB

    Total Files

    125

    Last publish

    Collaborators

    • paddy_mullen