You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Thanks for amazing lib. I have a requirement to display table using react-jsonschema-form with Add/Edit/Delete functionalities using custom (insert, edit, delete) modals. UI looks something like this
For building table i am using react-jsonschema-form-extra. For Add action I added
_position key is added which made it hard to insert new record, as it complains _position can't be empty. Therefore, i disable addPosition and keyField from tableConfFactory.
I can't figure out how to format fields such as textarea, dropdown, date in CustomInsertModal.
If i use react-bootstrap-table default InsertModal with <TableHeaderColumn key={i} {...column} isKey={true} hidden={true} hiddenOnInsert> to add new item then I get Failed prop type: Invalid prop validateState of type string supplied to InsertModal, expected object.
If i use react-bootstrap-table default InsertModal with <TableHeaderColumn key={i} {...column} isKey={true} hidden={true}> and give ID manually then new item is added to table. But I can't delete this item.
Hi,
Thanks for amazing lib. I have a requirement to display table using react-jsonschema-form with Add/Edit/Delete functionalities using custom (insert, edit, delete) modals. UI looks something like this
For building table i am using react-jsonschema-form-extra. For Add action I added
For Delete and Edit actions on each row I added
It would be nice if i can add edit, delete action icons on same column.
I added edit action header in
actionHeaderFactory.js
tableConFactory.js
table/index.js
Issues:
_position
key is added which made it hard to insert new record, as it complains_position can't be empty.
Therefore, i disable addPosition and keyField fromtableConfFactory
.<TableHeaderColumn key={i} {...column} isKey={true} hidden={true} hiddenOnInsert>
to add new item then I getFailed prop type: Invalid prop validateState of type string supplied to InsertModal, expected object.
<TableHeaderColumn key={i} {...column} isKey={true} hidden={true}>
and give ID manually then new item is added to table. But I can't delete this item.Here is a codesandbox
@mavarazy
Any pointers or helps will be appreciated!
The text was updated successfully, but these errors were encountered: