Jump to content

Grid - drag and drop

Recommended Posts

A grid, like TStringGrid under delphi will no doubt be added. But it's not high on our list since it's fairly easy to make. Since this is html you could easily generate a table rather than a div tag (see how the controls are implemented under w3ctrls.pas), and then create a TTableRow list, and a TColumns list. Or you can cheat and just do:


[sourcecode language=delphi]

FMyControl.innerhtml:='<table width="100%"><tr><td>first</td><td>second</td></tr></table>';



For the drag and drop stuff, just wrap the html drag & drop events (although these are scheduled to be added to the RTL shortly).


I'll see if i can whip up a demo for you later, right now i'm working on replacing the designer in the IDE with something a bit more "delphi" like :)

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...