Thanks a-lot Palash for the reference
actually I already made drag & drop functionality
but I don't know how to edit multiple dragged components and save them to database so that I can fetch them and re-render again for further editing
You can programmatically create XML schema for each component with information such as X,Y,Z coordinates, text, color etc etc and save the data to database.
Again when loading from database you can use a xml parser to tell components where to put themselves , what text or color to put in...
Check out this javascript library (below) , it's library to build drag and drop interfaces for creating websites.
givanz / VvvebJs
Drag and drop website builder javascript library.
VvvebJs
Drag and drop website builder javascript library.
Built with jQuery and Bootstrap 4.
Two panel Live Demo
One panel Live Demo
Using Startbootstrap landing page for demo page and Bootstrap 4 components.
Features
By default the editor comes with Bootstrap 4 and Widgets components and can be extended with any kind of components and inputs.
Usage
Thanks a-lot Palash for the reference
actually I already made drag & drop functionality
but I don't know how to edit multiple dragged components and save them to database so that I can fetch them and re-render again for further editing
You can programmatically create XML schema for each component with information such as X,Y,Z coordinates, text, color etc etc and save the data to database.
Again when loading from database you can use a xml parser to tell components where to put themselves , what text or color to put in...
Something like that may work.
But I have to make API for the app to load style , I can't send XML
Instead of XML you can use JSON
yea exactly
but question is how to render and save :)
When you fetching and rendering, you may need to write a parser.