Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. <div style="float:left;">
  2. <fieldset style="border:1px #b0b0b0 solid; min-width:240px; min-height:450px;">
  3. <legend style="border:1px #b0b0b0 solid; margin-left: 1em; padding:0.2em 0.8em">Drag Sources</legend>
  4.  
  5. <div>
  6. <div id="dragdiv1" draggable="true" style="background:#f3a0bf; float:left; width:50px; height:30px; border:1px solid rgb(176,76,176); cursor:pointer; margin:15px 11px 10px; text-align:center; vertical-align:middle;line-height:30px;">Tools</div>
  7. <div id="dragdiv2" draggable="true" style="background:#f3a0bf; float:left; width:50px; height:30px; border:1px solid rgb(176,76,176); cursor:pointer; margin:15px 11px 10px; text-align:center; vertical-align:middle;line-height:30px;">Apps</div>
  8. <div id="dragdiv3" draggable="true" style="background:#f3a0bf; float:left; width:50px; height:30px; border:1px solid rgb(176,76,176); cursor:pointer; margin:15px 11px 10px; text-align:center; vertical-align:middle;line-height:30px;">Logs</div>
  9. </div>
  10.  
  11. <div style="float:left;">
  12. <div id="tree1" style="margin-top:20px; padding-top:10px;width:200px; height:320px; zmin-height:320px; zmargin-left:5px; overflow:auto"
  13. data-bind="ojComponent:
  14. {
  15. component: 'ojTree',
  16. selectionMode: 'multiple',
  17. data:{data: getJson},
  18. dnd: {
  19. drag: {
  20. node: {
  21. dataTypes: ['application/ojtreenodes+json'],
  22. dragEnd: dragEnd
  23. }
  24. }
  25. }
  26. }"/>
  27. </div>
  28. </fieldset>
  29. </div>
  30.  
  31. <div style="float:left;margin-left:20px;">
  32. <fieldset style="border:1px #b0b0b0 solid;">
  33. <legend style="border:1px #b0b0b0 solid; margin-left: 1em; padding:0.2em 0.8em">Drop Target</legend>
  34.  
  35. <div id="tree2" style="padding-top:10px;width:200px; height:420px; overflow:auto;"
  36. data-bind="ojComponent:
  37. {
  38. component: 'ojTree',
  39. selectionMode: 'multiple',
  40. data:{data: getJson},
  41. dnd: {
  42. drop: {
  43. node: {
  44. dataTypes: ['application/ojtreenodes+json',
  45. 'dragdiv/text'],
  46. drop: drop
  47. }
  48. }
  49. }
  50. }"/>
  51. </fieldset>
  52. </div>
  53.  
  54. <div style="clear:both" ></div>
  55. <p/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement