1.0.11 • Published 11 months ago

@synerise/ds-editable-items-list v1.0.11

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

id: editable-items-list

title: EditableItemsList

EditableItemsList UI Component

Installation

npm i @synerise/ds-editable-items-list
or
yarn add @synerise/ds-editable-items-list

Usage

import EditableItemsList from '@synerise/ds-editable-items-list'

<EditableItemsList />

Demo

API

PropertyDescriptionTypeDefault
renderRowElementFunction to render each row. Invoked with item index and item object.(index: number, item: T) => ReactElement-
itemsArray of items to be rendered, each should have a unique id.T[]-
addButtonLabelText or custom component for the "Add" button.string | ReactNode-
addButtonIconCustom icon for the "Add" button.ReactElement-
addButtonPropsAdditional props for the "Add" button. It can override default style.Partial<ButtonProps>-
onAddCallback function called when the "Add" button is clicked.() => void-
minRowLengthThe minimum number of rows to display.number1
maxRowLengthThe maximum number of rows allowed.number-
deleteTooltipTooltip text for the delete button.string-
onDeleteCallback function called when a row's delete button is clicked. It receives the ID and index of the row to delete.(id: string, index: number) => void-
1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

1.0.9

11 months ago

1.0.8

11 months ago

1.0.7

12 months ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.11

11 months ago

1.0.10

11 months ago

0.2.7

1 year ago

0.2.6

1 year ago

0.2.5

1 year ago

0.2.3

1 year ago

0.2.4

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.2.2

1 year ago

0.1.40

1 year ago

0.1.39

1 year ago

0.1.32

1 year ago

0.1.33

1 year ago

0.1.34

1 year ago

0.1.35

1 year ago

0.1.36

1 year ago

0.1.37

1 year ago

0.1.38

1 year ago

0.1.30

1 year ago

0.1.31

1 year ago

0.1.29

2 years ago

0.1.27

2 years ago

0.1.28

2 years ago

0.1.14

2 years ago

0.1.15

2 years ago

0.1.20

2 years ago

0.1.21

2 years ago

0.1.22

2 years ago

0.1.23

2 years ago

0.1.24

2 years ago

0.1.25

2 years ago

0.1.26

2 years ago

0.1.16

2 years ago

0.1.17

2 years ago

0.1.18

2 years ago

0.1.19

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.1

2 years ago