开发者

excel functionality on html table

开发者 https://www.devze.com 2023-03-31 08:42 出处:网络
I have a html table with ~500cells. Each cell has a input text. I need the functionality of excel which allow to complete cells by mouse drag and drop. Google docs also allow this functiona开发者_开发

I have a html table with ~500cells. Each cell has a input text. I need the functionality of excel which allow to complete cells by mouse drag and drop. Google docs also allow this functiona开发者_开发百科lity.

Do you have an idea about how can I implement this functionality?


Hint: let the table be the wrapper and use a DIV inside each cell to hold the contents. Move the DIVs, not the table cells.

You probably want to look at jQuery UI draggables: http://jqueryui.com/demos/draggable/

If you've got the budget, go straight for ext.js: http://www.sencha.com/products/extjs/examples/#sample-2

0

精彩评论

暂无评论...
验证码 换一张
取 消