Skip to content

Drag the image to align it // react-sortable-hoc, react-admin

Notifications You must be signed in to change notification settings

CredderApp/react-admin-OrderImageInput

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

react-admin-OrderImageInput

react-admin 의 fileInput을 커스텀하여 react-sortable-hoc 를 적용하였다.
react-admin 의 imageinput 을 drag로 ordering 할 수 있게 구현하였다.

react-admin ver 2.8

if (data.length > 0) {
                formData.images = data
              }

react-admin ver 3.1

if (data.length > 0) {
                form.batch(() => {
                  form.change('mainImages', data)
                })
              }

used react-dropzone ver 4.0.1

add gridexample

About

Drag the image to align it // react-sortable-hoc, react-admin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%