BATraining / adapt-dragAndDrop-public

A drag and drop question
GNU General Public License v3.0
3 stars 8 forks source link

Text and graphic as a drag option #2

Closed RosiniB closed 9 years ago

RosiniB commented 9 years ago

The only thing i see missing, that was mentioned in requirements, is the ability to have text and graphic together as a drag option. I tried and i can only have text only or graphic only.

Have text default to appear on top and image on bottom.

himanshu1618 commented 9 years ago

@RosiniB - the content will render according to the body attribute of JSON, which accept HTML as input. so that you can control the sequence.

FYI-

"_defaultWidth": 120,
"_defaultHeight": 170,
"_draggableItems": [
  {
    "id": "drag-01",
    "body": "Hey buddy! how are you?<br><img src='course/en/images/number1.jpg'>"
  },
  {
    "id": "drag-02",
    "body": "<img src='course/en/images/number2.jpg'>"
  },
  {
    "id": "drag-03",
    "body": "<img src='course/en/images/number3.jpg'><br>Hey buddy! I'm fine."
  }
],

draganddrop_content

RosiniB commented 9 years ago

Sounds good, thanks